Information Science and Statistics

Series Editors:

M. Jordan
J. Kleinberg
B. Sch¨olkopf

Information Science and Statistics

Akaike/Kitagawa: The Practice of Time Series Analysis
Bishop: Pattern Recognition and Machine Learning
Cowell/Dawid/Lauritzen/Spiegelhalter: Probabilistic Networks and

Expert Systems

Doucet/de Freitas/Gordon: Sequential Monte Carlo Methods in Practice
Fine: Feedforward Neural Network Methodology
Hawkins/Olwell: Cumulative Sum Charts and Charting for Quality Improvement
Jensen/Nielsen: Bayesian Networks and Decision Graphs, Second Edition
Kjærulff/Madsen: Bayesian Networks and Inﬂuence Diagrams: A Guide to

Construction and Analysis

Lee/Verleysen: Nonlinear Dimensionality Reduction
Marchette: Computer Intrusion Detection and Network Monitoring: A Statistical

Viewpoint

Rissanen: Information and Complexity in Statistical Modeling
Rubinstein/Kroese: The Cross-Entropy Method: A Uniﬁed Approach to

Combinatorial Optimization, Monte Carlo Simulation, and Machine Learning

Studen´y: Probabilistic Conditional Independence Structures
Vapnik: The Nature of Statistical Learning Theory, Second Edition
Wallace: Statistical and Inductive Inference by Minimum Massage Length

Uffe B. Kjærulff

• Anders L. Madsen

Bayesian Networks
and Inﬂuence Diagrams

A Guide to Construction and Analysis

ABC

Anders L. Madsen
HUGIN Expert A/S
Gasværksvej 5
DK-9000 Aalborg
Denmark
anders@hugin.com

Jon Kleinberg
Department of Computer Science
Cornell University
Ithaca, NY 14853
USA

Uffe B. Kjærulff
Department of Computer Science
Aalborg University
Selma Lagerl¨ofs Vej 300
DK-9220 Aalborg
Denmark
uk@cs.aau.dk

Series Editors

Michael Jordan
Division of Computer Science
and Department of Statistics
University of California, Berkeley
Berkeley, CA 94720
USA

Bernhard Sch¨olkopf
Max Planck Institute

for Biological Cybernetics

Spemmannstrasse 38
72076 T¨ubingen
Germany

ISBN: 978-0-387-74100-0
DOI: 10.1007/978-0-387-74101-7

e-ISBN: 978-0-387-74101-7

Library of Congress Control Number: 2007940536

c(cid:1) 2008 Springer Science+Business Media, LLC
All rights reserved. This work may not be translated or copied in whole or in part without the written
permission of the publisher (Springer Science+Business Media, LLC, 233 Spring Street, New York, NY
10013, USA), except for brief excerpts in connection with reviews or scholarly analysis. Use in connection
with any form of information storage and retrieval, electronic adaptation, computer software, or by similar
or dissimilar methodology now known or hereafter developed is forbidden.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are
not identiﬁed as such, is not to be taken as an expression of opinion as to whether or not they are subject
to proprietary rights.

Printed on acid-free paper

9 8 7 6 5 4 3 2 1

springer.com

To our wives and children

Preface

This book is a monograph on practical aspects of probabilistic networks (a.k.a.
probabilistic graphical models) and is intended to provide a comprehensive
guide for practitioners that wish to understand, construct, and analyze de-
cision support systems based on probabilistic networks, including a number
of diﬀerent variants of Bayesian networks and inﬂuence diagrams. The book
consists of three parts:

• Part I: Fundamentals of probabilistic networks, including Chapters 1–5,
covering a brief introduction to probabilistic graphical models, the basic
graph-theoretic terminology, the basic (Bayesian) probability theory, the
key concepts of (conditional) dependence and independence, the diﬀerent
varieties of probabilistic networks, and methods for making inference in
these kinds of models. This part can be skipped by readers with funda-
mental knowledge about probabilistic networks.

• Part II: Model construction, including Chapters 6–8, covering methods and
techniques for elicitation of model structure and parameters, a large num-
ber of useful techniques and tricks to solve commonly recurring modeling
problems, and methods for constructing probabilistic networks automat-
ically from data, possibly through fusion of data and expert knowledge.
Chapters 6 and 7 oﬀer concrete advice and techniques on issues related
to model construction, and Chapter 8 explains the theory and methods
behind learning of Bayesian networks from data.

• Part III: Model analysis, including Chapters 9–11, covering conﬂict analy-
sis for detecting conﬂicting pieces of evidence (observations) or evidence
that conﬂicts with the model, sensitivity analysis of a model both with
respect to variations of evidence and model parameters, and value of in-
formation analysis. This part explains the theory and methods underlying
the three diﬀerent kinds of analyses.

Probabilistic networks have become an increasingly popular paradigm for
reasoning under uncertainty, addressing such tasks as diagnosis, prediction,
decision making, classiﬁcation, and data mining. From its infancy in the mid-

VIII

Preface

1980s till today there has been a rapid development of algorithms for construc-
tion, inference, learning, and analyses for probabilistic networks, and since the
turn of the millennium there has been a steep increase in the number of new
applications of probabilistic networks. Its popularity stems from a number of
factors. The graphical-based language for probabilistic networks is a power-
ful tool for expressing causal interactions while in the same time expressing
dependence and independence relations among entities of a problem domain.
Being graphical and compact the language furthermore provides an excel-
lent intuitive means of communication of ideas among knowledge engineers
and problem domain experts. Although inference in complex probabilistic
networks can be quite demanding (or even intractable), the fact that infer-
ence can be performed eﬃciently in models of hundreds or even thousands
of variables is another contribution to the popularity of probabilistic net-
works. Another important factor is that inference in probabilistic networks
is based on a well-established theoretical foundation of probability calculus
and decision theory, and hence provides mathematically coherent methods for
deriving conclusions under uncertainty, where multiple sources of information
and complex interaction patterns are involved. The existence of eﬃcient al-
gorithms for learning and adaptation of probabilistic networks from data and
the possibility of fusing data and expert knowledge are yet other attractive
features. Finally, probabilistic networks are “white boxes” in the sense that
the model components (variables, links, probability and utility parameters)
are open to interpretation, which makes it possible to perform a whole range
of diﬀerent analyses of the networks (e.g., conﬂict analysis, (in)dependence
analyses, sensitivity analysis, and value of information analysis).

As mentioned above, this book takes a practical outset, and is intended
primarily for those who wish to construct and analyze probabilistic networks
without necessarily having a deep understanding neither of the underlying
theory and methods for inference, learning, analyses, etc. nor of alternative
paradigms for reasoning under uncertainty. Hence, the scope of this book is
quite narrow, focusing almost exclusively on issues relevant for understanding,
constructing, and analyzing the diﬀerent variants of Bayesian networks and
inﬂuence diagrams. Other methods for inference and decision making under
uncertainty, therefore, get very limited attention.

The intended audience of this book is practitioners rather than students
of artiﬁcial intelligence. Despite this fact, exercises have been included in
all chapters (except Chapter 1) for the reader to check his/her level of
understanding. Answers to selected exercises and more can be found at
http://developer.hugin.com/Publications/BNID/.

For a quick overview, the diﬀerent kinds of probabilistic network models

considered in this book can be characterized very brieﬂy as follows:

• Discrete Bayesian networks represent factorizations of joint probability
distributions over ﬁnite sets of discrete random variables. The variables
are represented by the nodes of the network, and the links of the network

Preface

IX

represent the properties of (conditional) dependences and independences
among the variables. For each variable is speciﬁed a set of local probability
distributions conditional on the conﬁguration of its conditioning (parent)
variables.

• Conditional linear Gaussian (CLG) Bayesian networks represent factor-
izations of joint probability distributions over ﬁnite sets of random vari-
ables where some are discrete and some continuous. Each continuous vari-
able is assumed to follow a linear Gaussian distribution conditional on the
conﬁguration of its discrete parent variables.

• Discrete inﬂuence diagrams are (discrete) Bayesian networks augmented
with (discrete) decision variables and (discrete) utility functions. An inﬂu-
ence diagram is capable of computing expected utilities of various decision
options given the information known at the time of the decision.

• Conditional linear-quadratic Gaussian (CLQG) inﬂuence diagrams com-
bine CLG Bayesian networks, discrete inﬂuence diagrams, and quadratic
utility functions into a single framework supporting decision making under
uncertainty with both continuous and discrete variables.

• Limited-memory inﬂuence diagrams (LIMIDs) relax two fundamental as-
sumptions of inﬂuence diagrams: the no-forgetting assumption implying
perfect recall of past observations and decisions, and the assumption of
a total order on the decisions. LIMIDs allow us to model more types of
decision problems than the ordinary inﬂuence diagrams.

• Object-oriented probabilistic networks are hierarchically speciﬁed proba-
bilistic networks (i.e., one of the above), allowing the knowledge engineer
(model builder) to work on diﬀerent levels of abstraction, as well as ex-
ploiting the usual concepts of encapsulation and inheritance known from
object-oriented programming paradigms.

The book provides numerous examples, hopefully helping the reader to
gain a good understanding of the various concepts, some of which are known
to be hard to understand at a ﬁrst encounter.

Even though probabilistic networks provide an intuitive language for con-
structing knowledge-based models for reasoning under uncertainty, knowledge
engineers can often beneﬁt from a deeper understanding of the principles un-
derlying these models. For example, knowing the rules for reading statements
of dependence and independence encoded in the structure of a network may
prove very valuable in evaluating whether the network correctly models the
dependence and independence properties of the target problem. This, in turn,
may be crucial to achieving, for example, correct posterior probability distri-
butions from the model. Also, having a basic understanding of the relations
between the structure of a network and the complexity of inference may prove
useful in the model construction phase, avoiding structures that are likely to
result in problems of poor performance of the ﬁnal decision support system.
We present such basic concepts, principles, and methods underlying prob-

abilistic models that practitioners need to acquaint themselves with.

X

Preface

In Chapter 1, we provide a bit of background and contextual introduction
to Bayesian networks and inﬂuence diagrams. To give the reader a ﬁrst under-
standing of probabilistic networks, we present a very simple Bayesian network
and shown how it can be augmented with explicit representation of decision
options and a utility function, turning it into an inﬂuence diagram. Also, we
discuss brieﬂy the notions of causality, construction of probabilistic networks,
and applicability (i.e., when to use probabilistic networks).

In Chapter 2, we describe the fundamental concepts of the graphical lan-
guage used to construct probabilistic networks as well as the rules for reading
statements of (conditional) dependence and independence encoded in network
structures. We present two equivalent criteria for reading these statements,
namely Pearl’s (Pearl 1988) d-separation criterion and the criterion of directed
Markov property by Lauritzen, Dawid, Larsen & Leimer (1990a).

In Chapter 3, we present the uncertainty calculus used in probabilistic
networks to represent the numerical counterpart of the graphical structure,
namely classical (Bayesian) probability calculus. We shall see how a basic ax-
iom of probability calculus leads to recursive factorizations of joint probability
distributions into products of conditional probability distributions, and how
such factorizations along with local statements of conditional independence
naturally can be expressed in graphical terms.

In Chapter 4, we see how putting the basic notions of Chapters 2 and 3
together we get the notion of discrete Bayesian networks. Also, we present
a range of derived types of network models, including conditional Gaussian
models where discrete and continuous variables co-exist, inﬂuence diagrams
that are Bayesian networks augmented with decision variables and utility
functions, limited-memory inﬂuence diagrams that allow the knowledge engi-
neer to reduce model complexity through assumptions about limited memory
of past events, object-oriented models that allow the knowledge engineer to
construct hierarchical models consisting of reusable submodels, and dynamic
Bayesian networks that provide a framework for modeling phenomena evolv-
ing over time.

In Chapter 5, we explain the principles underlying inference in these dif-

ferent kinds of probabilistic networks.

In Chapter 6, we discuss the art of constructing a probabilistic network,
and the characteristics of problem domains that can be successfully modeled
by probabilistic networks. The diﬀerent phases of model construction is dis-
cussed, including design (how to identify the right set variables, how to elicit
the structure of a probabilistic network, and the how to verify a network struc-
ture), implementation (elicitation of probability and utility parameters), test,
and analysis (i.e., troubleshooting the model).

In Chapter 7, we present a large number of techniques and tricks for solving
commonly occurring modeling problems in probabilistic networks. The set
of techniques and tricks include various structure related techniques (parent
divorcing, temporal transformation of causal relations, modeling of structural
and functional uncertainty, modeling of undirected dependence relations and

Preface

XI

bidirectional relations), probability distribution related techniques (modeling
of measurement error, (diﬀerent) expert opinions, node absorption, value set
by intervention, and independence of causal inﬂuence), and decision related
techniques (modeling of test decisions, missing informational links, missing
observations, hypothesis of highest probability, and constraints on decisions).
In Chapter 8, we describe how probabilistic networks can be constructed
automatically from a database of cases or from a combination of data and
problem domain expertise. The underlying theory of structure learning is ex-
plained and diﬀerent constraint-based learning algorithms are presented. The
expectation-maximization (EM) algorithm is described for learning the val-
ues of probability parameters from data as well as from data and problem
domain expertise (penalized EM). Finally, we describe how the values of the
probability parameters of a probabilistic network can be learned sequentially
(adaptation).

In Chapter 9, we describe a method for performing conﬂict analysis in a
probabilistic network, which aims at detecting pieces of evidence that might be
in conﬂict with one another (i.e., pointing in diﬀerent directions with respect
to output from the network) or in conﬂict with the network model. Also the
topics of tracing and resolution of conﬂicts are discussed.

In Chapter 10, we describe how to analyze the sensitivity of the output of
a probabilistic network (e.g., diagnosis, classiﬁcation, etc.) to changes in the
values of observed variables (evidence) as well as probability parameters.

Finally,

in Chapter 11, we describe methods for performing value-of-

information analyses in Bayesian networks as well as inﬂuence diagrams.

Aalborg,
September 2007

Uﬀe B. Kjærulﬀ
Anders L. Madsen

Contents

Part I Fundamentals

1

3
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3
1.1 Expert Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4
1.1.1 Representation of Uncertainty . . . . . . . . . . . . . . . . . . . . . . .
5
1.1.2 Normative Expert Systems . . . . . . . . . . . . . . . . . . . . . . . . .
5
1.2 Rule-Based Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6
1.2.1 Causality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7
1.2.2 Uncertainty in Rule-Based Systems . . . . . . . . . . . . . . . . . .
7
1.2.3 Explaining Away . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8
1.3 Bayesian Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3.1 Inference in Bayesian Networks . . . . . . . . . . . . . . . . . . . . . .
9
1.3.2 Construction of Bayesian Networks . . . . . . . . . . . . . . . . . . 10
1.3.3 An Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.4 Bayesian Decision Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.5 When to Use Probabilistic Nets . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.6 Concluding Remarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

2 Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.1 Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.2 Graphical Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.2.1 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.2.2 Vertices vs. Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.2.3 Taxonomy of Vertices/Variables . . . . . . . . . . . . . . . . . . . . . 22
2.2.4 Vertex Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.2.5 Summary of Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.3 Evidence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.4 Causality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.5 Flow of Information in Causal Networks . . . . . . . . . . . . . . . . . . . . 25
2.5.1 Serial Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.5.2 Diverging Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

XIV

Contents

2.5.3 Converging Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.5.4 The Importance of Correct Modeling of Causality . . . . . 30
2.6 Two Equivalent Irrelevance Criteria . . . . . . . . . . . . . . . . . . . . . . . . 31
2.6.1 d-Separation Criterion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.6.2 Directed Global Markov Criterion . . . . . . . . . . . . . . . . . . . 33
2.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

3 Probabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.1 Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.1.1 Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.1.2 Conditional Probability . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.1.3 Axioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3.2 Probability Distributions for Variables . . . . . . . . . . . . . . . . . . . . . 40
3.2.1 Rule of Total Probability . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.2.2 Graphical Representation . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.3 Probability Potentials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3.3.1 Normalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3.3.2 Evidence Potentials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3.3.3 Potential Calculus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
3.3.4 Barren Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.4 Fundamental Rule and Bayes’ Rule . . . . . . . . . . . . . . . . . . . . . . . . 50
3.4.1 Interpretation of Bayes’ Rule . . . . . . . . . . . . . . . . . . . . . . . 51
3.5 Bayes’ Factor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.6 Independence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
3.6.1 Independence and DAGs . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3.7 Chain Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
3.8 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

4 Probabilistic Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
4.1 Reasoning Under Uncertainty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
4.1.1 Discrete Bayesian Networks . . . . . . . . . . . . . . . . . . . . . . . . . 65
4.1.2 Conditional Linear Gaussian Bayesian Networks . . . . . . . 70
4.2 Decision Making Under Uncertainty . . . . . . . . . . . . . . . . . . . . . . . 74
4.2.1 Discrete Inﬂuence Diagrams . . . . . . . . . . . . . . . . . . . . . . . . 75
4.2.2 Conditional LQG Inﬂuence Diagrams . . . . . . . . . . . . . . . . 85
4.2.3 Limited Memory Inﬂuence Diagrams . . . . . . . . . . . . . . . . . 89
4.3 Object-Oriented Probabilistic Networks . . . . . . . . . . . . . . . . . . . . 91
4.3.1 Chain Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
4.3.2 Unfolded OOPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
4.3.3 Instance Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
4.3.4 Inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
4.4 Dynamic Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
4.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

Contents

XV

5

Solving Probabilistic Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
5.1 Probabilistic Inference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
5.1.1 Inference in Discrete Bayesian Networks . . . . . . . . . . . . . . 108
5.1.2 Inference in CLG Bayesian Networks . . . . . . . . . . . . . . . . . 121
5.2 Solving Decision Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
5.2.1 Solving Discrete Inﬂuence Diagrams . . . . . . . . . . . . . . . . . 124
5.2.2 Solving CLQG Inﬂuence Diagrams . . . . . . . . . . . . . . . . . . . 129
5.2.3 Relevance Reasoning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
5.2.4 Solving LIMIDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
5.3 Solving OOPNs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
5.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

Part II Model Construction

6 Eliciting the Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
6.1 When to Use Probabilistic Networks . . . . . . . . . . . . . . . . . . . . . . . 144
6.1.1 Characteristics of Probabilistic Networks . . . . . . . . . . . . . 145
6.1.2 Some Criteria for Using Probabilistic Networks . . . . . . . . 145
6.2 Identifying the Variables of a Model . . . . . . . . . . . . . . . . . . . . . . . 147
6.2.1 Well-Deﬁned Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
6.2.2 Types of Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
6.3 Eliciting the Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
6.3.1 A Basic Approach . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
6.3.2 Idioms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
6.4 Model Veriﬁcation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
6.5 Eliciting the Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
6.5.1 Eliciting Subjective Conditional Probabilities . . . . . . . . . 163
6.5.2 Eliciting Subjective Utilities . . . . . . . . . . . . . . . . . . . . . . . . 166
6.5.3 Specifying CPTs and UTs Through Expressions . . . . . . . 166
6.6 Concluding Remarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
6.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

7 Modeling Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
7.1 Structure Related Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
7.1.1 Parent Divorcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
7.1.2 Temporal Transformation . . . . . . . . . . . . . . . . . . . . . . . . . . 182
7.1.3 Structural and Functional Uncertainty . . . . . . . . . . . . . . . 184
7.1.4 Undirected Dependence Relations . . . . . . . . . . . . . . . . . . . 188
7.1.5 Bidirectional Relations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
7.1.6 Naive Bayes Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
7.2 Probability Distribution Related Techniques . . . . . . . . . . . . . . . . 196
7.2.1 Measurement Uncertainty . . . . . . . . . . . . . . . . . . . . . . . . . . 196
7.2.2 Expert Opinions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
7.2.3 Node Absorption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201

XVI

Contents

7.2.4 Set Value by Intervention . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
7.2.5 Independence of Causal Inﬂuence . . . . . . . . . . . . . . . . . . . . 205
7.2.6 Mixture of Gaussian Distributions . . . . . . . . . . . . . . . . . . . 210
7.3 Decision Related Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
7.3.1 Test Decisions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
7.3.2 Missing Informational Links . . . . . . . . . . . . . . . . . . . . . . . . 216
7.3.3 Missing Observations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
7.3.4 Hypothesis of Highest Probability . . . . . . . . . . . . . . . . . . . 220
7.3.5 Constraints on Decisions . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
7.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225

8 Data-Driven Modeling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
8.1 The Task and Basic Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . 228
8.2 Structure Learning From Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
8.2.1 Basic Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
8.2.2 Equivalent Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
8.2.3 Statistical Hypothesis Tests . . . . . . . . . . . . . . . . . . . . . . . . . 232
8.2.4 Structure Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
8.2.5 PC Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
8.2.6 PC∗ Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
8.2.7 NPC Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
8.3 Batch Parameter Learning From Data . . . . . . . . . . . . . . . . . . . . . . 246
8.3.1 Expectation-Maximization Algorithm . . . . . . . . . . . . . . . . 247
8.3.2 Penalized EM Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
8.4 Sequential Parameter Learning . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
8.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254

Part III Model Analysis

9 Conﬂict Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
9.1 Evidence Driven Conﬂict Analysis . . . . . . . . . . . . . . . . . . . . . . . . . 262
9.1.1 Conﬂict Measure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
9.1.2 Tracing Conﬂicts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
9.1.3 Conﬂict Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
9.2 Hypothesis Driven Conﬂict Analysis . . . . . . . . . . . . . . . . . . . . . . . 267
9.2.1 Cost-of-Omission Measure . . . . . . . . . . . . . . . . . . . . . . . . . . 267
9.2.2 Evidence with Conﬂict Impact . . . . . . . . . . . . . . . . . . . . . . 267
9.3 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269

10 Sensitivity Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
10.1 Evidence Sensitivity Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
10.1.1 Distance and Cost-of-Omission Measures . . . . . . . . . . . . . 275
10.1.2 Identify Minimum and Maximum Beliefs . . . . . . . . . . . . . 276
10.1.3 Impact of Evidence Subsets . . . . . . . . . . . . . . . . . . . . . . . . . 277

Contents XVII

10.1.4 Discrimination of Competing Hypotheses . . . . . . . . . . . . . 278
10.1.5 What-If Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
10.1.6 Impact of Findings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
10.2 Parameter Sensitivity Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
10.2.1 Sensitivity Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
10.2.2 Sensitivity Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
10.2.3 Admissible Deviation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
10.3 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

11 Value of Information Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291
11.1 VOI Analysis in Bayesian Networks . . . . . . . . . . . . . . . . . . . . . . . . 292
11.1.1 Entropy and Mutual Information . . . . . . . . . . . . . . . . . . . . 292
11.1.2 Hypothesis Driven Value of Information Analysis . . . . . . 293
11.2 VOI Analysis in Inﬂuence Diagrams . . . . . . . . . . . . . . . . . . . . . . . 297
11.3 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305

List of Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313

Part I

Fundamentals

1

Introduction

The desire to have computers perform intellectually challenging tasks has
existed ever since the invention of the general-purpose computer that could
be programmed to execute an arbitrary set of manipulations on numbers and
symbols. Solving an intellectually challenging task can be characterized as a
process of deriving conclusions (new pieces of knowledge) by manipulating a
(large) body of knowledge, typically including deﬁnitions of entities (objects,
concepts, events, phenomena, etc.), relations among them, and observations
of states (values) of some of the entities.

As a prototypical example of a decision problem, imagine a physician who
is consulted by a patient complaining about stomach pain. The physician then
conducts an interview of the patient and possibly makes some investigations
to localize the origin of the pain, to ﬁnd other symptoms of the disorder, etc.
Based on her knowledge about pathophysiological cause–eﬀect mechanisms
involving stomach pain as well as on the information revealed from the pa-
tient’s medical records, from the interview, from the symptoms observed, etc.,
the physician makes a diagnosis and a treatment plan.

By formulating the physician’s knowledge in an appropriate formal (com-
puter) language for which there exist methods for making inferences to manip-
ulate pieces of knowledge formulated in this language, the reasoning conducted
by the physician can be automated and carried out by a computer. Proba-
bilistic networks is an example of such a language that has gained a lot of
popularity over the last couple of decades.

This chapter provides brief accounts on the context of probabilistic net-

works, what they are, and when to use them.

1.1 Expert Systems

A system that is able to perform tasks that are supposed to be intellectually
demanding is often said to exhibit artiﬁcial intelligence (AI) or to be an expert
system if the system’s problem solving ability is restricted to a particular area

4

1 Introduction

of expertise. Many deﬁnitions of artiﬁcial intelligence have been proposed. In
this book, we shall consider techniques that enable us to construct devices
and services that are able to

• perform reasoning and decision making under uncertainty,
• acquire knowledge from data/experience, and
•

solve problems eﬃciently and respond to new situations.

We shall refrain from discussing whether or not this makes the devices or
services exhibit AI, and leave this decision to the reader.

In any case, a probabilistic network is always constructed to solve a par-
ticular problem within a given problem domain (area of expertise). Therefore,
the label “expert system” can often be attached to systems that perform
reasoning and decision making by means of probabilistic networks.

The motivation for constructing an expert system is typically to automate
some recurring task involving reasoning and decision making under uncer-
tainty, possibly involving extraction of information/knowledge from data.

Several other expert system paradigms have been suggested. This book is
not intended to provide accounts on such competing paradigms, but for the
sake of historical context of probabilistic networks, we shall brieﬂy mention
some of the important and well-known alternatives to probabilistic networks.

1.1.1 Representation of Uncertainty

Randomness and uncertain judgment is inherent in most real-world decision
problems. We therefore need a method (paradigm) that supports represen-
tation of quantitative measures of uncertain statements and a method for
combining the measures such that reasoning and decision making under un-
certainty can be automated.

Probability theory is the prevailing method for dealing with uncertainty,
and it is the one in focus in this book. However, other methods have been
proposed, as some researchers ﬁnd probability theory inappropriate for pre-
senting some forms of quantitative uncertainty. Probability theory deals with
uncertainty of well-deﬁned occurrences; i.e., the source of ambiguity is occur-
rence. Situations involving ambiguously and/or vaguely deﬁned occurrences
might be better represented by other methods. Let us very brieﬂy mention the
two most prominent alternative methods for dealing with uncertainty. Readers
interested in more detailed accounts are referred to the literature.

Dempster and Shafer (Dempster 1968, Shafer 1976) developed belief the-
ory to be able to assign measures of uncertainty to sets of events without
necessarily having to assign or assess uncertainty for single events. For exam-
ple, if you receive a message that your golf partner is free for a match of golf
“next Sunday”, you might be willing to assign a measure of uncertainty to the
pair of (mutually exclusive) events that you and your partner will be playing
this Sunday or Sunday next week, but unwilling to assign measures to the two

1.2 Rule-Based Systems

5

individual possibilities. Rather than focusing on events, belief theory focuses
on evidence (on sets of events).1

Fuzzy methods (Zadeh 1965, Zadeh & Kacprzyk 1992) address situations
where the ambiguity lies in the nature of events rather than in their occur-
rence. Typical examples of ambiguous concepts include everyday concepts like
beauty, intelligence, size, speed, etc. For example, both the statement “Paul
is tall” (S) and the statement “Paul is not tall” (¬S) might be plausible, and
we therefore wish to assign some degree of plausibility to S ∧ ¬S, which is
in contrast with ordinary logic where S ∧ ¬S is always false. Expert systems
based on fuzzy logic have achieved some popularity, maybe especially so in
applications involving control loops (fuzzy control).

1.1.2 Normative Expert Systems

The objective in some early attempts to construct expert systems was to create
a model of the decision making performed by some (human) expert and let a
system containing such a model perform tasks that previously needed human
expertise. Today, a more realistic approach is normally taken where a model
of the problem domain is created rather than a model of the expert such that
systems containing such a model support experts in performing their tasks
rather than substituting them.

Systems containing models of problem domains that use classical proba-
bility calculus and decision theory as their basis for reasoning and decision
making under uncertainty are often referred to as normative expert systems,
as their behavior is governed by a set of fundamental rules (or axioms).

In some sense, Bayesian networks can be seen as an extension of one of
the earliest methods for knowledge representation and manipulation, namely
logical rules. Let us therefore dwell a little on rule-based systems.

1.2 Rule-Based Systems

One of the earliest methods for knowledge representation and manipulation
was logical rules of the form

R1: ifs 1 then s2,

where statement s2 (the consequence) can be concluded with certainty when-
ever statement s1 (the condition) is observed to hold. If another rule states
that

R2: ifs 2 then s3,

then s3 can be concluded through forward chaining involving rules R1 and R2
once s1 is known to hold.

1 Adapted from example by Bender (1996).

6

1 Introduction

Notice that such rules are asymmetric in the sense that the condition and
consequence statements are not interchangeable; observing the consequence
statement does not allow us to conclude that the condition statement holds.

1.2.1 Causality

Assume that the occurrence of some event c is known to cause the eﬀect e and
that the relationship between c and e is known to be deterministic (logical).
Then, obviously, observing c we can conclude e. Observing e, on the other
hand, does not make us able to conclude c, unless c is known to be the only
cause of e. Thus, in formulating the causal relationship between c and e as a
rule we would obviously want to formulate it as “if c then e” rather than “if
e then c”.

From this insight we conclude that rules like R1 and R2 express causal
relationships, where s1, say, plays the role of the cause and s2 the role of the
eﬀect, the only possible exception being if s1, as an eﬀect, only can be caused
by s2.

A rule-based system, like any other knowledge representation scheme, rep-
resents a certain part of the world (the problem domain) only up to some
precision. This implies that certain (causal) mechanisms might be ignored as
being unimportant for the precision (or level of detail) at which conclusions
need to be drawn. For example, in a medical expert system, a disorder caus-
ing some symptom, s, might be ignored if it only appears in, say, less than
one out of a million cases. If ignoring such a rare explanation for s leaves
only one possible cause (disorder), say d, for the symptom, it might at a ﬁrst
consideration seem reasonable to state a rule like “if s then d”.

Violating the “causal direction” in formulating rules is, however, not ad-

visable. For example, in a medical expert system consider the causal chain

smoking → bronchitis → dyspnoea,

denoting the concatenation of rules

and

R3: ifsmoking then bronchitis,

R4: if bronchitis then dyspnoea,

Here bronchitis is a disorder, dyspnoea (a medical term for shortness of breath)
a symptom of bronchitis, and smoking a cause of bronchitis; sometimes referred
to as a piece of background information. Assume that instead of R4 we for-
mulated the rule

R (cid:2)
4: if dyspnoea then bronchitis,

which would make smoking and dyspnoea be competing explanations for
bronchitis. Then upon observing that the patient smokes we would be able

1.2 Rule-Based Systems

7

to conclude only that the patient might suﬀer from bronchitis, but would not
be able to conclude anything about the patient’s breathing characteristics. In
eﬀect, rules R3 and R (cid:2)
4 collectively express independence between smoking and
dyspnoea, which is obviously wrong.

1.2.2 Uncertainty in Rule-Based Systems

As clearly demonstrated by rules R3 and R4, crisp logic is inappropriate for
representing the nature of the causal relations among smoking, bronchitis, and
dyspnoea. Only a certain proportion of the smoking patients entering a chest
clinic suﬀer from bronchitis. Similarly, dyspnoea appears as a symptom only
for some of the patients suﬀering from bronchitis. In terms of having uncer-
tainty associated with the (cause–eﬀect) rules, these examples are by no means
exceptional. The vast majority of cause–eﬀect mechanisms of interest in our
attempts to model parts of the world in expert (or AI) systems are uncertain.
In order to make up for this fact, a method for rule-based systems with
uncertainty was developed in the 1970s by the team behind the medical expert
system MYCIN (Shortliﬀe & Buchanan 1975). Associated with each rule in
MYCIN is a numerical value in the interval [−1, +1], called a certainty factor
(CF). This factor indicates the strength of the conclusion of the rule whenever
its condition is satisﬁed. In particular, given the evidence available,

⎧
⎨

⎩

CF =

+1 when the conclusion is certainly true,
−1 when the conclusion is certainly false,

0 when no information about the conclusion can be derived.

Certainty factors are, however, nothing but an ad hoc device for dealing with
uncertainty. Heckerman (1986) proved that certainty factors cannot be deﬁned
consistently if the domains of the variables have more than two elements.
More precisely, certain factors can be proved to be consistent only for binary
variables, where the rules induce a singly connected tree in which there is
exactly one variable with no parents.2

1.2.3 Explaining Away

Consider the small rule system depicted in Figure 1.1, where C1 can cause
E1 and E2, and C2 can cause E2. The CF method provides a formula for
combining evidence from E1 and E2 and applying it to C1. Unfortunately,
however, the CF method provides no mechanism for applying E1 to C2, which

2 The variables in the condition of a rule are often referred to as the “parents”
of the consequence variable, which is often referred to as the “child” variable.
For example, variables temperature and humidity in rule “if temperature = high
and humidity = high then comfort = low” are parents of comfort. A parent–child
relation is depicted by two nodes in a graph (or tree) interconnected by a directed
link from the parent to the child.

8

1 Introduction

C1

C2

E1

E2

Fig. 1.1. Graphical representation of rules “if C1 then E1” and “if C1 and C2 then
E2”.

is needed to implement the “explaining-away” mechanism, where evidence on
E1 makes C1 more probable, in turn making the competing explanation C2
for E2 less probable.

1.3 Bayesian Networks

Having realized that rule-based systems with certainty factors have serious
limitations as a method for knowledge representation and reasoning under un-
certainty, researchers turned their attention towards a probabilistic interpre-
tation of certainty factors, leading to the deﬁnition of Bayesian networks (Kim
& Pearl 1983, Pearl 1988). A Bayesian network can be described brieﬂy as an
acyclic directed graph (DAG) which deﬁnes a factorization of a joint proba-
bility distribution over the variables that are represented by the nodes of the
DAG, where the factorization is given by the directed links of the DAG. More
precisely, for a DAG, G = (V, E), where V denotes a set of nodes (or vertices)
and E a set of directed links (or edges) between pairs of the nodes, a joint
probability distribution, P(XV ), over the set of (typically discrete) variables
XV indexed by V can be factorized as
(cid:5)

P(XV ) =

P(Xv | Xpa(v)),

(1.1)

v∈V

where Xpa(v) denotes the (preferably small) set of parent variables of variable
Xv for each node v ∈ V. The factorization in Equation 1.1 expresses a set
of independence assumptions, which are represented by the DAG in terms of
pairs of nodes that are not directly connected to one another by a directed
link. It is the existence of such independence assumptions and the small set
of parents for each node that makes it possible to specify the conditional
probabilities and to perform inference eﬃciently in a Bayesian network.

Each conditional probability distribution, P(Xv | Xpa(v)), represents a set

of “rules”, where each “rule” (conditional probability) takes the form

R5: if Xpa(v) = xpa(v) then Xv = xv with probability z,
where xv and xpa(v) denote, respectively, a value assigned to Xv and a vector
of values assigned to the parent variables of Xv. For example, if one of ﬁve
possible values can be assigned to Xv and it has four parents each of which

1.3 Bayesian Networks

9

can be assigned one of three possible values, then P(Xv | Xpa(v)) represents a
collection of 5 × 34 = 405 rules of the kind shown in rule R5.

Actually, the notion of rules is only implicitly apparent in Bayesian net-
works. The explicit notion is that of conditional probability distributions,
P(Xv | Xpa(v)), where, rather than as in rule R5, each term is formulated as a
conditional probability (parameter) of the form

P(Xv = xv | Xpa(v) = xpa(v)) = z

or even simpler as

P(xv | xpa(v)) =z.

1.3.1 Inference in Bayesian Networks

Contrary to rule-based systems with certainty factors, inference in Bayesian
networks is always consistent and the ability to handle the explaining-away
problem is embedded naturally in the way in which inference is performed
in Bayesian networks. However, in general, it is an NP-hard task to solve
the inference problem in Bayesian networks (Cooper 1990); even approximate
inference is NP-hard (Dagum & Luby 1993). Fortunately, eﬃcient inference
algorithms have been developed such that inference in Bayesian networks can
be done in fractions of a second even for large networks containing hundreds of
variables (Lauritzen & Spiegelhalter 1988, Jensen, Lauritzen & Olesen 1990).
Eﬃciency of inference, however, is highly dependent on the structure of the
DAG, so networks with a relatively small number of variables sometimes resist
exact inference, in which case approximate methods must be applied.

As Bayesian networks most often represent causal statements of the kind
X → Y, where X is a cause of Y and where Y often takes the role of an observ-
able eﬀect of X, which typically cannot be observed itself, we need to derive
the posterior probability distribution P(X | Y = y) given the observation Y = y
using the prior distribution P(X) and the conditional probability distribution
P(Y | X) speciﬁed in the model. Reverend Thomas Bayes (1702–1761) provided
the famous Bayes’ rule for performing this calculation:
P(X | Y = y) = P(Y = y | X)P(X)

,

P(Y = y)

where P(Y = y) =
x P(Y = y | X = x)P(X = x). This rule (or theorem) plays
a central role in statistical inference because the probability of a cause can
be inferred when its eﬀect has been observed. Olmsted (1983) and Shachter
(1986) developed a method for inference in Bayesian networks, which involved
multiple applications of Bayes’ rule. Lauritzen & Spiegelhalter (1988) and
Jensen et al. (1990) developed inference methods for Bayesian networks based
on message passing in a tree structure (junction tree) derived from the struc-
ture of the Bayesian network. The latter approach is the prevailing inference
method used in modern software packages for inference in probabilistic net-
works.

(cid:6)

10

1 Introduction

1.3.2 Construction of Bayesian Networks

As described above, a Bayesian network can be described in terms of a qualita-
tive component, consisting of a DAG, and a quantitative component, consist-
ing of a joint probability distribution that factorizes into a set of conditional
probability distributions governed by the structure of the DAG.

The construction of a Bayesian network thus runs in two phases. First,
given the problem at hand, one identiﬁes the relevant variables and the
(causal) relations among them. The resulting DAG speciﬁes a set of depen-
dence and independence assumptions that will be enforced on the joint proba-
bility distribution, which is next to be speciﬁed in terms of a set of conditional
probability distributions, P(Xv | Xpa(v)), one for each “family”, {v} ∪ pa(v), of
the DAG.

A Bayesian network can be constructed manually, (semi-)automatically
from data, or through a combination of a manual and a data driven process,
where partial knowledge about structure as well as parameters (i.e., condi-
tional probabilities) blend with statistical information extracted from data-
bases of cases (i.e., previous joint observations of values of the variables).

Manual construction of a Bayesian network can be a labor-intensive task,
requiring a great deal of skill and creativity as well as close communication
with problem domain experts. Extensive guidance on how to manually con-
struct a probabilistic network is the core of this book. This includes methods
and hints on how to elicit the network structure (with emphasis on the impor-
tance of maintaining a causal perspective), methods for eliciting and specifying
the parameter values of the network, and numerous tricks that can be applied
for solving prototypical modeling problems.

Once constructed (be it manually or automatically), the parameters of a
Bayesian network may be continuously updated as new information arrives.
Thus, a model for which rough guesses on the parameter values are provided
initially will gradually improve itself as it gets presented with more and more
cases.

1.3.3 An Example

As a simple example, let us consider a problem concerning reasoning about
starting problems for a car. Assume for simplicity that we only consider two
competing causes for starting problems, namely no fuel and dirty spark plugs.
Also assume that, apart from starting problems, the only observation we can
make is reading the fuel gauge. Now, if the car will not start and the fuel gauge
reads “empty”, then we conclude that “no fuel” is probably is the cause of the
problem, and we strongly reduce our suspicion that dirty spark plugs might
be causing the problem.

Let us see how to automate that reasoning process in a Bayesian network.
First, we identify four variables and the possible values (states) that they may

1.3 Bayesian Networks

11

Variable

Possible states

Start?
Spark plugs
Fuel?
Fuel gauge

{no, yes}
{dirty, clean}
{no, yes}
{empty, not empty}

Table 1.1. The four variables and their possible states for the “car won’t start”
problem.

attain (in this case no more than two states for each variable is necessary).
The variables and their possible states are shown in Table 1.1.

Figure 1.2 shows the structure of the Bayesian network for this simple
problem, where Fuel? and Spark plugs have causal inﬂuences on Start?, and
Fuel? has a causal inﬂuence on Fuel gauge.

Fuel?

Spark plugs

Fuel gauge

Start?

Fig. 1.2. Bayesian network for the “car won’t start” problem.

A (conditional) probability table needs to be speciﬁed for each variable.
Assume that when knowing nothing about the states of the other variables
we would expect that there is fuel on the car (i.e., Fuel? = yes) in 999 out of
1000 cases. Therefore, respecting the order of states in Table 1.1, we specify
the probability distribution for Fuel? as

P(Fuel?) = (0.001, 0.999).

Similarly, expecting that the spark plugs are clean in 95 out of 100 cases, we
specify

P(Spark plugs) = (0.05, 0.95).

For Fuel gauge we need to specify two conditional probability distributions,
one for each possible state of Fuel?. For Start? we need to specify four con-
ditional probability distributions, one for each combination of possible states
of Fuel? and Spark plugs. These probability distributions appear in the condi-
tional probability tables shown in Table 1.2 and Table 1.3, respectively, where
we expect the fuel gauge to read empty with probability 0.995 if there is no
fuel, the car to start with probability 0.99 when there is fuel on the car and the
spark plugs are clean, etc. In Table 1.3, the probability of 0.01 for Start? = no
when Fuel? =yes and Spark plugs = clean captures other causes not explicitly
considered in our simple model.

From the probabilities speciﬁed we can compute that

12

1 Introduction

Fuel?

Fuel gauge

no

yes

empty
not empty

0.995
0.005

0.001
0.999

Table 1.2. Conditional probability distributions for Fuel gauge given Fuel?,
P(Fuel gauge | Fuel?).

Fuel?

Spark plugs

no

yes

Start?

no
no
yes
yes

dirty
clean
dirty
clean

1
1
0.1
0.01

0
0
0.9
0.99

Table 1.3. Conditional probability distributions for Start? given Fuel? and
Spark plugs, P(Start? | Fuel?, Spark plugs).

P(Start? = no) = 0.016,

i.e., we expect the car to start in 984 out of 1000 cases (or with probability
0.984). Now, if we ﬁx the value of Start? to no, then, using Bayes’ rule, we get

P(Fuel? =no | Start? = no) =0.065

and

P(Spark plugs = dirty | Start? = no) = 0.326.

Thus, our best guess is that dirty spark plugs are causing the problem, al-
though the probability of dirty spark plugs might not be high enough and
the probability of “no fuel” not low enough to settle with the conclusion
that dirty spark plugs are causing our problem. Making the observation that
Fuel gauge = empty and repeating the computations, we ﬁnd that

P(Fuel? = no | Start? = no, Fuel gauge = empty) = 0.986

and

P(Spark plugs = dirty | Start? = no, Fuel gauge = empty) = 0.054.

The observation Fuel gauge = empty thus makes us strongly believe that “no
fuel” is the cause of the problem, as we see a dramatic increase in the proba-
bility of Fuel? =no and a (somewhat less dramatic) decrease in the probability
of Spark plugs = dirty. The decrease in the probability of Spark plugs = dirty
illustrates the explaining-away eﬀect.

1.4 Bayesian Decision Problems

13

1.4 Bayesian Decision Problems

Most often, the outputs of interest of a Bayesian network are the posterior
probabilities of the variables representing the problem that we wish to reason
about (e.g., possible diagnoses). These probabilities are often combined with
costs and beneﬁts (utilities) of performing one or more actions to solve the
problem. That is, from the posterior probabilities and the utilities we compute
expected utilities for each possible decision option (e.g., diﬀerent treatment
alternatives). The decision option with the highest expected utility should
then be selected. Based on a number of studies, Tversky & Kahneman (1981)
have shown that people usually do not make decisions that maximize their
expected utility.

A Bayesian network can be augmented with decision variables, represent-
ing decision options, and utility functions, representing preferences, that may
depend on both random (or chance) variables and decision variables. Networks
so augmented are called inﬂuence diagrams, and can be used to compute ex-
pected utilities for the various decision options given the observations (and
decisions) made.

Assume that we wish to augment our Bayesian network in Figure 1.2 with a
decision variable, say Action, with states {no action, add fuel, clean spark plugs}
and a utility function, say U, that depends on the states of chance variables
Fuel? and Spark plugs and on our decision variable. Figure 1.3 shows the struc-
ture of the augmented network, where the links from Fuel gauge and Start?
to Action indicates that the states of Fuel gauge and Start? are known prior
to making the decision on which action to perform. Table 1.4 shows our util-

Fuel?

Spark plugs

Fuel gauge

U

Start?

Action

Fig. 1.3. Inﬂuence diagram for the “car won’t start” problem.

ity function, where we assign a utility value of 1 to combinations of states of
Action, Fuel?, and Spark plugs where the action is supposed to solve a problem;
otherwise, we assign a value of 0 to the utility function.

With the evidence that Start? = no and Fuel gauge = empty we ﬁnd that

EU(Action) = (0.009, 0.986, 0.054),

meaning that the expected utilities of decision options no action, add fuel, and
clean spark plugs are 0.009, 0.986, and 0.054, respectively. Since EU(add fuel)

14

1 Introduction

Fuel?

no
no
yes
yes

Spark plugs

no action

add fuel

clean spark plugs

Action

dirty
clean
dirty
clean

0
0
0
1

1
1
0
0

1
0
1
0

Table 1.4. Utility function for the “car won’t start” decision problem.

is greater than both EU(no action) and EU(clean spark plugs), we select deci-
sion option add fuel.

Note that, coincidentally, P(Fuel? = no) = EU(add fuel) because of the
way in which we have deﬁned the utility function. In general, the domain of
a utility function is the set of real numbers. If one deﬁnes the utility values
on, say, a monetary scale, the expected utilities of one’s decision options can
be interpreted directly as expected gains or losses on the chosen scale, say
dollars.

1.5 When to Use Probabilistic Nets

There are many good reasons to choose probabilistic networks as the frame-
work for solving inference and decision problems under uncertainty. As indi-
cated above, these include (among others)

coherent and mathematically sound handling of uncertainty,

•
• normative decision making,
• automated construction and adaptation of models based on data,
•

intuitive and compact representation of cause–eﬀect relations and (condi-
tional) dependence and independence relations, and
eﬃcient solution of queries given evidence.

•

There are, however, some requirements to the nature of the problem that
should be fulﬁlled for probabilistic networks to be an appropriate choice of
method. Here, we shall just brieﬂy mention some key requirements:

• The variables and events (i.e., possible values of the variables) of the prob-

lem domain must be well-deﬁned.

• Knowledge should be available about the (causal) relations among the
variables, the conditional probabilities quantifying the relations, and the
utilities (preferences) associated with the various decision options.

• Uncertainty should be associated with at least some of the relations among

the variables.

• The problem at hand should most probably contain an element of decision
making involving a desire to maximize the expected utility of a decision.

1.6 Concluding Remarks

15

Data are often available in the form of joint observations of a subset of
the variables pertaining to the problem domain. Each set of joint observations
pertains to a particular instance (case) of the problem domain. For example,
data can be extracted from a database of customers, where a lot of features
(e.g., gender, age, marital status, income, etc.) are recorded for each customer
(case), and analyzed statistically to derive both structure and parameters of
a probabilistic network. Such automatically generated models can reveal a lot
of information about dependence and independence relations (and sometimes
even causal mechanisms) among the variables, and thus provide new knowl-
edge about the problem domain. Sometimes, however, the available data do
not originate from variables with clearly understood semantics or the pat-
terns of interactions among variables are complex. In such cases, a neural
network model might be better suited, where the model consists of a function
that attempts to match each input case with a desired output by iteratively
tweaking a large number of coeﬃcients (weights) until convergence (i.e., until
the distance between the desired and the actual outputs is suﬃciently small).

1.6 Concluding Remarks

In this brief introduction we have only touched superﬁcially upon a few key
characteristics of probabilistic networks. These and many more will be pre-
sented in much greater detail in the chapters to come.

Careful introductions to the fundamental concepts, theories, and methods
underlying probabilistic networks as well as deﬁnitions of Bayesian networks,
inﬂuence diagrams, and their variants are provided in the remaining chapters
of Part I; i.e., Chapters 2–5. These chapters can be skipped if you already know
enough about the basics of probabilistic networks and wish to dive directly
into Part II covering topics on model elicitation, modeling techniques, and
learning models from data, or Part III covering topics on model analysis.

2

Networks

Probabilistic networks are graphical models of (causal) interactions among
a set of variables, where the variables are represented as vertices (nodes) of
a graph and the interactions (direct dependences) as directed edges (links
or arcs) between the vertices. Any pair of unconnected vertices of such a
graph indicates (conditional) independence between the variables represented
by these vertices under particular circumstances that can easily be read from
the graph. Hence, probabilistic networks capture a set of (conditional) depen-
dence and independence properties associated with the variables represented
in the network.

Graphs have proven themselves an intuitive language for representing such
dependence and independence statements, and thus provide an excellent lan-
guage for communicating and discussing dependence and independence rela-
tions among problem-domain variables. A large and important class of as-
sumptions about dependence and independence relations expressed in fac-
torized representations of joint probability distributions can be represented
compactly in a class of graphs known as acyclic, directed graphs (DAGs).

Chain graphs are a generalization of DAGs, capable of representing a
broader
class of dependence and independence assumptions (Frydenberg
1989, Wermuth & Lauritzen 1990). The added expressive power comes, how-
ever, with the cost of a signiﬁcant increase in the semantic complexity, making
speciﬁcation of joint probability factors much less intuitive. Thus, despite their
expressive power, chain graph models have gained little popularity as practical
models for decision support systems, and we shall therefore focus exclusively
on models that factorize according to DAGs.

As indicated above, probabilistic networks is a class of probabilistic models
that have gotten their name from the fact that the joint probability distri-
butions represented by these models can be naturally described in graphical
terms, where the vertices of a graph (or network) represent variables over
which a joint probability distribution is deﬁned and the presence and ab-
sence of edges represent dependence and independence properties among the
variables.

18

2 Networks

Probabilistic networks can be seen as compact representations of “fuzzy”
cause–eﬀect rules that, contrary to ordinary (logical) rule-based systems, is ca-
pable of performing deductive and abductive reasoning as well as inter-causal
reasoning. Deductive reasoning (sometimes referred to as causal reasoning)
follows the direction of the causal links between variables of a model; e.g.,
knowing that a patient suﬀers from angina we can conclude (with high
probability) the patient has fever and a sore throat. Abductive
reasoning
(sometimes referred to as diagnostic reasoning) goes against the direction of
the causal links; e.g., observing that a patient has a sore throat provides sup-
porting evidence for angina being the correct diagnosis.

The property, however, that sets inference in probabilistic networks apart
from other automatic reasoning paradigms is its ability to make inter-causal
reasoning: Getting evidence that supports solely a single hypothesis (or a sub-
set of hypotheses) automatically leads to decreasing belief in the unsupported,
competing hypotheses. This property is often referred to as the explaining
away eﬀect. For example, there is a large number of possible causes that a car
will not start; one being lack of fuel. Observing that the fuel gauge indicates
no fuel provides strong evidence that lack of fuel is the cause of the problem,
while the beliefs in other possible causes decrease substantially (i.e., they are
explained away by the observation). The ability of probabilistic networks to
automatically perform such inter-causal inference is a key contribution to their
reasoning power.

Often the graphical aspect of a probabilistic network is referred to as its
qualitative aspect, and the probabilistic, numerical part as its quantitative
aspect. This chapter is devoted to the qualitative aspect of probabilistic net-
works. In Section 2.1 we introduce some basic graph notation that will be
used throughout the book. Section 2.2 discusses the notion of variables, which
is the key entity of probabilistic networks. Another key concept is that of
“evidence”, which we shall touch upon in Section 2.3. Maintaining a causal
perspective in the model construction process can prove valuable, as men-
tioned brieﬂy in Section 2.4. Sections 2.5 and 2.6 are devoted to an in-depth
treatment on the principles and rules for ﬂow of information in DAGs. We
carefully explain the properties of the three basic types of connections in a
DAG (i.e., serial, diverging, and converging connections) through examples,
and show how these combine directly into the d-separation criterion and how
they support inter-causal (explaining away) reasoning. We also present an al-
ternative to the d-separation criterion known as the directed global Markov
criterion, which in many cases proves to be a more eﬃcient method for reading
oﬀ dependence and independence statements of a DAG.

2.1 Graphs

A graph is a pair G = (V, E), whereV is a ﬁnite set of distinct vertices and
E ⊆ V × V is a set of edges. An ordered pair (u, v) ∈ E denotes a directed edge

2.1 Graphs

19

from vertex u to vertex v, andu is said to be a parent of v and v a child of u.
The set of parents and children of a vertex v shall be denoted by pa(v) and
ch(v), respectively.

As we shall see later, depending on what they represent, vertices are dis-
played as labelled circles, ovals, or polygons, directed edges as arrows, and
undirected edges as lines. Figure 2.1(a) shows a graph with 8 vertices and 8
edges (all directed), where, for example, the vertex labeled E has two parents
labeled T and L. The labels of the vertices are referring to (i) the names of
the vertices, (ii) the names of the variables represented by the vertices, or (iii)
descriptive labels associated with the variables represented by the vertices.1

A

T

S

L

B

A

T

S

L

B

E

E

X

D

X

D

(a)

(b)

Fig. 2.1. (a) An acyclic, directed graph (DAG). (b) Moralized graph.

We often use the intuitive notation u

G→ v to denote (u, v) ∈ E (or just
u → v if G is understood). If (u, v) ∈ E and (v, u) ∈ E, the edge between u
and v is an undirected edge, denoted by {u, v} ∈ E or u G v (or just u
v).
We shall use the notation u ∼ v to denote that u → v, v → u, or u
v.
G
∼ v. Ifu → v and w → v,
Vertices u and v are said to be connected in G if u
then these edges are said to meet head-to-head at v.

If E does not contain undirected edges, then G is a directed graph and if E
does not contain directed edges, then it is an undirected graph. As mentioned
above, we shall not deal with mixed cases of both directed and undirected
edges.

A path (cid:4)v1, . . . , vn(cid:5) is a sequence of distinct vertices such that vi ∼ vi+1
for each i = 1, . . . , n − 1; thelength of the path is n − 1. The path is a directed
path if vi → vi+1 for each i = 1, . . . , n − 1; vi is then an ancestor of vj and vj
a descendant of vi for each j > i. The set of ancestors and descendants of v
are denoted an(v) and de(v), respectively. The set nd(v) =V \ de(v) ∪ {v} are

1 See Section 2.2 for the naming conventions used for vertices and variables.

20

2 Networks

called the non-descendants of v. The ancestral set An(U) ⊆ V of a set U ⊆ V
of a graph G = (V, E) is the set of vertices U ∪

u∈U an(u).

A path (cid:4)v1, . . . , vn(cid:5) from v1 to vn of an undirected graph, G = (V, E), is
blocked by a set S ⊆ V if {v2, . . . , vn−1} ∩ S (cid:7)= ∅. There is a similar concept for
paths of acyclic, directed graphs (see below), but the deﬁnition is somewhat
more complicated (see Proposition 2.4 on page 32).

(cid:1)

A graphG = (V, E) is connected if for any pair {u, v} ⊆ V there is a path
(cid:4)u, . . . , v(cid:5) in G. A connected graph G = (V, E) is a tree if for any pair {u, v} ⊆ V
there is a unique path (cid:4)u, . . . , v(cid:5) in G.

A cycle is a path, (cid:4)v1, . . . , vn(cid:5), of length greater than two with the excep-
tion that v1 = vn; a directed cycle is deﬁned in the obvious way. A directed
graph with no directed cycles is called an acyclic, directed graph or simply a
DAG; see Figure 2.1(a) for an example. The undirected graph obtained from
a DAG,G, by replacing all its directed edges with undirected ones is known
as the skeleton of G.

Let G = (V, E) be a DAG. The undirected graph, Gm = (V, Em), where
Em = {{u, v} |u and v are connected or have a common child in G},
is called the moral graph of G. That is,G m is obtained from G by ﬁrst adding
undirected edges between pairs of unconnected vertices that share a com-
mon child, and then replacing all directed edges with undirected edges; see
Figure 2.1(b) for an example.

2.2 Graphical Models

On a structural (or qualitative) level, probabilistic network models are graphs
with the vertices representing variables and utility functions, and the edges
representing diﬀerent kinds of relations among the variables and utility func-
tions.

2.2.1 Variables

A chance variable represents an exhaustive set of mutually exclusive events,
referred to as the domain of the variable. These events are also often called
states, levels, values, choices, options, etc. The domain of a variable can be
discrete or continuous; discrete domains are always ﬁnite.

Example 2.1. Some sample variable domains can be

{false, true}
{red, green, blue}
{1, 3, 5, 7}
{−1.7, 0, 2.32, 5}
{< 0, 0 − 5, > 5}
] − ∞; ∞[
{] − ∞; 0], ]0; 5], ]5; 10]}

2.2 Graphical Models

21

The penultimate domain in the above list represents a domain for a continuous
variable; the remaining ones represent domains for discrete variables.

Throughout this book we shall use capital letters (possibly indexed) to
denote variables or sets of variables and lower case letters (possibly indexed)
to denote particular values of variables. Thus, X = x may either denote the
fact that variable X attains the value x or the fact that the set of variables
X = (X1, . . . , Xn) attains the (vector) of values x = (x1, . . . , xn). By dom(X) =
(x1, . . . , x||X||) we shall denote the domain of X, where|| X|| = |dom(X)| is the
number of possible distinct values of X. IfX = (X1, . . . , Xn), then dom(X) is
the Cartesian product (or product space) over the domains of the variables
in X. Formally,

dom(X) = dom(X1) × · · · × dom(Xn),
i ||Xi||. For two (sets of) variables X and Y we shall write
and thus ||X|| =
either dom(X ∪ Y) or dom(X, Y) to denote dom(X) × dom(Y). If z ∈ dom(Z),
then by zX we shall denote the projection of z to dom(X), where X ∩ Z (cid:7)= ∅.

(cid:8)

Example 2.2. Assume that dom(X) = {true, false} and dom(Y) ={red, green,
blue}. Then dom(X, Y) = {(true, red), (true, green), (true, blue), (false, red), (false,
green), (false, blue)}. For z = (true, blue) we get zX = true and zY = blue.

Chance Variables and Decision Variables

There are basically two categories of variables, namely variables representing
random events and variables representing choices under the control of some,
typically human, agent. Consequently, the ﬁrst category of variables is often
referred to as chance variables (or random variables) and the second category
as decision variables. Note that a random variable can depend functionally
on other variables in which case it is sometimes referred to as a deterministic
(random) variable. Sometimes it is important to distinguish between truly
random variables and deterministic variables, but unless this distinction is
important we shall treat them uniformly, and refer to them simply as “random
variables”, or just “variables”.

The problem of identifying those entities of a domain that qualify as vari-
ables is not necessarily trivial. Also, identifying the “right” set of variables
can be non-trivial. These questions, however, will not be further touched upon
in this chapter, but will be discussed in detail in Chapter 6.

2.2.2 Vertices vs. Variables

The notions of variables and vertices (or nodes) are often used interchangeably
for models containing no decision variables and utility functions (e.g., Bayesian
networks). For models that contain decision variables and utility functions it
is convenient to distinguish between variables and vertices, as a vertex does

22

2 Networks

not necessarily represent a variable. In this book we shall therefore maintain
that distinction.

As indicated above, we shall use lower-case letters like u, v, w (or some-
times α, β, γ, etc.) to denote vertices, and upper-case letters like U, V, W to
denote sets of vertices. Vertex names will sometimes be used in the subscripts
of variable names to identify the variables corresponding to vertices. For ex-
ample, if v is a vertex representing a variable, then we denote that variable
by Xv. If v represents a utility function, then Xpa(v) denotes the domain of
the function, which is a set of chance and/or decision variables.

2.2.3 Taxonomy of Vertices/Variables

For convenience, we shall use the following terminology for classifying variables
and/or vertices of probabilistic networks.

First, as discussed above, there are three main classes of vertices in proba-
bilistic networks, namely vertices representing chance variables, vertices rep-
resenting decision variables, and vertices representing utility functions. We
deﬁne the category of a vertex to represent this dimension of the taxonomy.
Second, chance and decision variables as well as utility functions can be
discrete or continuous. This dimension of the taxonomy will be characterized
by the kind of the variable or vertex.

Finally, for discrete chance and decision variables, we shall distinguish
between labeled, Boolean, numbered, and interval variables. For example, re-
ferring to Example 2.1 on page 20, the ﬁrst domain is the domain of a Boolean
variable, the second and the ﬁfth are domains of labeled variables, the third
and the fourth are domains of numbered variables, and the last is the domain
of an interval variable. This dimension of the taxonomy is referred to by the
subtype of discrete variables, and is useful for providing mathematical expres-
sions of speciﬁcations of conditional probability tables and utility tables, as
discussed in Chapter 6.

Table 2.1 summarizes the variable/vertex taxonomy.

Category Kind

Subtype

Chance
Decision
Utility

Discrete
Labeled
Continuous Boolean

Numbered
Interval

Table 2.1. The taxonomy for variables/vertices. Note that the subtype dimension
only applies for discrete chance and decision variables.

2.3 Evidence

23

2.2.4 Vertex Symbols

Throughout this book we shall be using ovals to indicate discrete chance
variables, rectangles to indicate discrete decision variables, and diamonds to
indicate discrete utility functions. Continuous variables and utility functions
are indicated with double borders. See Table 2.2 for an overview.

Category Kind

Symbol

Chance

Decision

Utility

Discrete
Continuous
Discrete
Continuous
Discrete
Continuous

Table 2.2. Vertex symbols.

2.2.5 Summary of Notation

Table 2.3 summarizes the notation used for vertices (upper part), variables
(middle part), and utility functions (lower part).

2.3 Evidence

A key inference task with a probabilistic network is computation of posterior
probabilities of the form P(x | ε), where, in general, ε is evidence (i.e., infor-
mation) received from external sources in the form of a likelihood distribution
over the states of a set of variables, X, of the network; also often called an
evidence function (or potential 2) for X. An evidence function, EX, for a set,
X, of variables is a function EX : dom(X) → R+.

Example 2.3. If dom(X) = (x1, x2, x3), thenE X = (1, 0, 0) is an evidence func-
tion indicating that X = x1 with certainty. If EX = (1, 2, 0), then with certainty
X (cid:7)= x3 and X = x2 is twice as likely as X = x1.

An evidence function that assigns a zero probability to all but one state
is often said to provide hard evidence; otherwise, it is said to provide soft evi-
dence. We shall often leave out the “hard” or “soft” qualiﬁer, and simply talk
about evidence if the distinction is immaterial. Hard evidence on a variable
X is also often referred to as instantiation of X or we say that X has been
observed.

2 See Section 3.3 on page 44.

24

2 Networks

S, U, V, W sets of vertices

V
V∆
VΓ
u, v, w, . . .
α, β, γ, . . .

set of vertices of a model
the subset of V that represent discrete variables
the subset of V that represent continuous variables
vertices
vertices

X, Yi, Zk
XW
X
XW
Xu, Xα
x, yi, zk
xY
XC
XD
X∆
XΓ

variables or sets of variables
subset of variables corresponding to set of vertices W
the set of variables of a model; note that X = XV
subset of X, whereW ⊆ V
variables corresponding to vertices u and α, respectively
conﬁgurations/states of (sets of) variables
projection of conﬁguration x to dom(Y), X ∩ Y (cid:3)= ∅
the set of chance variables of a model
the set of decision variables of a model
the subset of discrete variables of X
the subset of continuous variables of X

U
VU
u(X)

the set of utility functions of a model
the subset of V representing utility functions
utility function u ∈ U with the set of variables X as domain
Table 2.3. Notation used for vertices, variables, and utility functions.

We shall attach the label ε to vertices representing variables with hard
evidence and the label ε to vertices representing variables with either soft or
hard evidence. For example, hard evidence on variable X (like EX = (1, 0, 0)
in Example 2.3 on the preceding page) is indicated as shown in Figure 2.2(a)
and soft evidence (like EX = (1, 2, 0) in Example 2.3 on the previous page) is
indicated as shown in Figure 2.2(b).

X

ε

(a)

X

ε

(b)

Fig. 2.2. (a) Hard evidence on X. (b) Soft (or hard) evidence on X.

2.4 Causality

Causality plays an important role in the process of constructing probabilistic
network models. There are a number of reasons why proper modeling of causal
relations is important or helpful, although, in a Bayesian network model, it is
not strictly necessary to have the directed links of the model follow a causal
interpretation. In models with explicit representation of decisions (inﬂuence

2.5 Flow of Information in Causal Networks

25

diagrams), the directed links must represent causal relations. We shall only
brieﬂy touch upon the issue of causality, and stress a few important points
about causal modeling. The reader is referred to Pearl’s work for an in-depth
treatment of the subject (Pearl 2000).

A variable X is said to be a direct cause of Y if setting the value of X by
force, the value of Y may change and there is no other variable Z that is a
direct cause of Y such that X is a direct cause of Z; see Pearl’s work for details.
As an example, consider the variables Flu and Fever. Common sense tells
us that ﬂu is a cause of fever, not the other way around. This fact can be
veriﬁed from the thought experiment of forcefully setting the states of Flu
and Fever: Killing fever with an aspirin or by taking a cold shower will have
no eﬀect on the state of Flu, whereas eliminating a ﬂu would make the body
temperature go back to normal (assuming ﬂu is the only eﬀective cause of
fever).

To correctly represent the dependence and independence relations that
exist among a set of variables of a problem domain it is useful to have the
causal relations among the variables represented in terms of directed links
from causes to eﬀects. That is, if X is a direct cause of Y, we should make sure
to add a directed link from X to Y. If done the other way around (i.e., Y → X),
we may end up with a model that does not properly represent the dependence
and independence relations of the problem domain. In subsequent sections, we
shall see several examples of the importance of respecting the causal relations
in this sense.

That said, however, one does not have to construct a model where the
links can be interpreted as causal relations, it just makes the model much
more intuitive, eases the process of getting the dependence and independence
relations right, and signiﬁcantly eases the process of eliciting the conditional
probabilities of the model. In Section 2.5.4 on page 30, we shall brieﬂy return
to the issue of the importance of correctly modeling the causal relationships
in probabilistic networks.

2.5 Flow of Information in Causal Networks

As mentioned above, the DAG of a probabilistic network model is a graphical
representation of the dependence and independence properties of the joint
probability distribution of the model. In this section we shall see how to read
these properties from a DAG. In doing this, it is convenient to consider each
possible basic kind of connection that can exist in a DAG.

To illustrate the diﬀerent kinds of connections, consider the example in
Figure 2.3 on the next page, which shows the structure of a probabilistic
network for the following small ﬁctitious example, where each variable has
two possible states, no and yes.

Example 2.4 (Burglary or Earthquake (Pearl 1988)). Mr Holmes is working in
his oﬃce when he receives a phone call from his neighbor Dr Watson, who tells

26

2 Networks

him that Holmes’ burglar alarm has gone oﬀ. Convinced that a burglar has
broken into his house, Holmes rushes to his car and heads for home. On his
way, he listens to the radio, and in the news it is reported that there has been
a small earthquake in the area. Knowing that earthquakes have a tendency to
make burglar alarms go oﬀ, he returns to his work.

B

E

R

A

W

• W: Phone call from Watson
• A: Burglary alarm
• B: Burglary
• R: Radio news
• E: Earthquake

Fig. 2.3. Structure of a probabilistic network model for the “Burglary or Earth-
quake” story of Example 2.4 on the previous page.

Notice that all of the links in the network of Figure 2.3 are causal: Burglary
or earthquake can cause the alarm to go oﬀ, earthquake can cause a report
on earthquake in the radio news, and the alarm can cause Dr Watson to call
Mr Holmes.

We see three diﬀerent kinds of connections in the network of Figure 2.3:

two serial connections B → A → W and E → A → W,

•
• one diverging connection A ← E → R, and
• one converging connection B → A ← E.

In the following sub-sections we discuss each of these three possible kinds
of connections in terms of their ability to transmit information given evidence
and given no evidence on the middle variable, and we shall see that it is the
converging connection that provides the ability of probabilistic networks to
perform inter-causal reasoning (explaining away).

2.5.1 Serial Connections

Let us consider the serial connection (causal chain) depicted in Figure 2.4 on
the facing page, referring to Example 2.4 on the previous page.

We need to consider two cases, namely with and without hard evidence

(see Section 2.3 on page 23) on the middle variable (Alarm).

First, assume we do not have deﬁnite knowledge about the state of Alarm.
Then evidence about Burglary will make us update our belief about the state
of Alarm, which in turn will make us update our belief about the state of
Watson calls. The opposite is also true: If we receive information about the
state of Watson calls, that will inﬂuence our belief about the state of Alarm,
which in turn will inﬂuence our belief about Burglary.

2.5 Flow of Information in Causal Networks

27

Burglary

Alarm

Watson calls

Fig. 2.4. Serial connection (causal chain) with no hard evidence on Alarm. Evidence
on Burglary will aﬀect our belief about the state of Watson calls and vice versa.

So, in conclusion, as long as we do not know the state of Alarm for sure,
information about either Burglary or Watson calls will inﬂuence our belief on
the state of the other variable. This is illustrated in Figure 2.4 by the two
dashed arrows, signifying that evidence may be transmitted through a serial
connection as long as we do not have deﬁnite knowledge about the state of
the middle variable.

Burglary

Alarm

ε

Watson calls

Fig. 2.5. Serial connection (causal chain) with hard evidence on Alarm. Evidence
on Burglary will have no aﬀect on our belief about the state of Watson calls and vice
versa.

Next, assume we do have deﬁnite knowledge about the state of Alarm (see
Figure 2.5). Now, given that we have hard evidence on Alarm any informa-
tion about the state of Burglary will not make us change our belief about
Watson calls (provided Alarm is the only cause of Watson calls; i.e., that the
model is correct). Also, information about Watson calls will have no inﬂuence
on our belief about Burglary when the state of Alarm is known for sure.

In conclusion, when the state of the middle variable of a serial connec-
tion is known for sure (i.e., we have hard evidence on it), then transmission
of evidence between the other two variables cannot take place through this
connection. This is illustrated in Figure 2.5 by the two dashed arrows ending
at the observed variable, indicating that transmission of evidence is blocked.
The general rule for transmission of evidence in serial connections can thus

be stated as follows:

Proposition 2.1 (Serial connection).
through a serial connection X → Y → Z unless the state of Y is known.

Information may be transmitted

28

2 Networks

2.5.2 Diverging Connections

Consider the diverging connection depicted in Figure 2.6, referring to Exam-
ple 2.4 on page 25.

Alarm

Earthquake

Radio news

Fig. 2.6. Diverging connection with no evidence on Earthquake. Evidence on Alarm
will aﬀect our belief about the state of Radio news and vice versa.

Again, we consider the cases with and without hard evidence on the middle

variable (Earthquake).

First, assume we do not know the state of Earthquake for sure. Then
receiving information about Alarm will of course inﬂuence our belief about
Earthquake, as earthquake is a possible explanation for alarm. The updated
belief about the state of Earthquake will in turn make us update our belief
about the state of Radio news. The opposite case (i.e., receiving information
about Radio news) will, of course, lead to a similar conclusion. So, we get a
result that is similar to the result for serial connections, namely that evidence
can be transmitted through a diverging connection if we do not have deﬁnite
knowledge about the state of the middle variable. This result is illustrated in
Figure 2.6.

Next, assume the state of Earthquake is known for sure (i.e., we have re-
ceived hard evidence on that variable). Now, if information is received about
the state of either Alarm or Radio news, then this information is not going to
change our belief about the state of Earthquake, and consequently we are not
going to update our belief about the other, yet unobserved, variable. Again,
this result is similar to the case for serial connections, and is illustrated in
Figure 2.7.

Alarm

Earthquake

ε

Radio news

Fig. 2.7. Diverging connection with hard evidence on Earthquake. Evidence on
Alarm will not aﬀect our belief about the state of Radio news and vice versa.

2.5 Flow of Information in Causal Networks

29

The general rule for transmission of evidence in diverging connections can

be stated as follows:

Proposition 2.2 (Diverging connection). Information may be transmitted
through a diverging connection X ← Y → Z unless the state of Y is known.

2.5.3 Converging Connections

Consider the converging connection depicted in Figure 2.8, referring to Ex-
ample 2.4 on page 25.

Burglary

Alarm

Earthquake

Fig. 2.8. Converging connection with no evidence on Alarm or any of its descendants.
Information about Burglary will not aﬀect our belief about the state of Earthquake
and vice versa.

First, if no evidence is available about the state of Alarm, then information
about the state of Burglary will not provide any derived information about the
state of Earthquake. In other words, burglary is not an indicator of earthquake,
and vice versa (again, of course, assuming correctness of the model). Thus,
contrary to serial and diverging connections, a converging connection will not
transmit information if no evidence is available for the middle variable. This
fact is illustrated in Figure 2.8.

Second, if evidence is available on Alarm, then information about the state
of Burglary will provide an explanation for the evidence that was received
about the state of Alarm, and thus either conﬁrm or disconﬁrm Earthquake
as the cause of the evidence received for Alarm. The opposite, of course, also
holds true. Again, contrary to serial and diverging connections, converging
connections allow transmission of information whenever evidence about the
middle variable is available. This fact is illustrated in Figure 2.9 on the fol-
lowing page.

The rule illustrated in Figure 2.8 tells us that if nothing is known about
a common eﬀect of two (or more) causes, then the causes are independent;
i.e., receiving information about one of them will have no impact on the belief
about the other(s). However, as soon as some evidence is available on a com-
mon eﬀect the causes become dependent. If, for example, Mr Holmes receives
a phone call from Dr Watson, telling him that his burglar alarm has gone
oﬀ, burglary and earthquake become competing explanations for this eﬀect,

30

2 Networks

Burglary

Alarm

ε

Earthquake

Fig. 2.9. Converging connection with (possibly soft) evidence on Alarm or any of
its descendants. Information about Burglary will aﬀect our belief about the state of
Earthquake and vice versa.

and receiving information about the possible state of one of them obviously
either conﬁrms or disconﬁrms the other one as the cause of the (possible)
alarm. Note that even if the information received from Dr Watson might not
be totally reliable (amounting to receiving soft evidence on Alarm), Burglary
and Earthquake still become dependent.

The general rule for transmission of evidence in converging connections

can then be stated as:

Proposition 2.3 (Converging connection).
Information may only be
transmitted through a converging connection X → Y ← Z if evidence on Y or
one of its descendants is available.

Inter-causal Inference (Explaining Away)

The property of converging connections, X → Y ← Z, that information about
the state of X (Z) provides an explanation for an observed eﬀect on Y, and
hence conﬁrms or disconﬁrms Z (X) as the cause of the eﬀect, is often referred
to as the explaining away eﬀect or as inter-causal inference. For example,
getting a radio report on earthquake provides strong evidence that the earth-
quake is responsible for a burglar alarm, and hence explaining away a burglary
as the cause of the alarm.

The ability to perform inter-causal inference is unique for graphical models,
and is one of the key diﬀerences between automatic reasoning systems based
on probabilistic networks and systems based on, for example, production rules.
In a rule-based system we would need dedicated rules for taking care of inter-
causal reasoning.

2.5.4 The Importance of Correct Modeling of Causality

It is a common modeling mistake to let arrows point from eﬀect to cause, lead-
ing to faulty statements of (conditional) dependence and independence and,
consequently, faulty inference. For example, in the “Burglary or Earthquake”
example on page 25 one might put a directed link from W (Watson calls) to
A (Alarm) because the fact that Dr Watson makes a phone call to Mr Holmes

2.6 Two Equivalent Irrelevance Criteria

31

“points to” the fact that Mr Holmes’ alarm has gone oﬀ, etc. Experience shows
that this kind of reasoning is common when people are building their ﬁrst
probabilistic networks, and is probably due to a mental ﬂow-of-information
model, where evidence acts as the “input” and the derived conclusions as the
“output”.

Using this faulty modeling approach, the “Burglary or Earthquake” model
in Figure 2.3 on page 26 would have all its links reversed (see Figure 2.10).
Using Proposition 2.2 on page 29 on the model in Figure 2.10 we ﬁnd that
B and E are dependent when nothing is known about A, and, using Proposi-
tion 2.3 on the preceding page, we ﬁnd that A and R are dependent whenever
evidence about E is available. Neither of these conclusions are, of course, true,
and will make the model make wrong inferences.

W

A

R

B

E

• W: Watson calls
• A: Alarm
• B: Burglary
• R: Radio news
• E: Earthquake

Fig. 2.10. Wrong model for the “Burglary or Earthquake” story of Example 2.4
on page 25, where the links are directed from eﬀects to causes, leading to faulty
statements of (conditional) dependence and independence.

Having the causal relations among domain variables be mapped to directed
links X → Y, whereX is a cause of Y, is thus (at least) helpful, if not crucial,
to having the model correctly represent the dependence and independence
properties of the problem domain.

Another reason why respecting a causal modeling approach is important
stems from the potential diﬃculties in specifying the conditional probability
of X = x given that Y = y when Y → X does not reﬂect a causal relationship.
For example, it might be diﬃcult for Mr Holmes to specify the probability
that a burglar has broken into his house given that he knows the alarm has
gone oﬀ, as the alarm might have gone oﬀ for other reasons. Thus, specifying
the probability that the alarm goes oﬀ given its possible causes might be
easier and more natural, providing a sort of complete description of a local
phenomenon. We shall leave the discussion of this important issue for now
and resume in Chapter 4 and Chapter 6.

2.6 Two Equivalent Irrelevance Criteria

Propositions 2.1–2.3 comprise the components needed to formulate a general
rule for reading oﬀ the statements of relevance and irrelevance relations for

32

2 Networks

two (sets of) variables, possibly given a third variable (or set of variables).
This general rule is known as the d-separation criterion and is due to Pearl
(1988).

In Chapter 3 we show that for any joint probability distribution that fac-
torizes according to a DAG, G, (see Chapter 3 for a deﬁnition) independence
statements involving variables Xu and Xv (again, see Chapter 3 for a deﬁn-
ition) are equivalent to similar statements about d-separation of vertices u
and v in G.

Thus, the d-separation criterion may be used to answer queries of the
kind “are X and Y independent given Z” (in a probabilistic sense) or, more
generally, queries of the kind “is information about X irrelevant for our belief
about the state of Y given information about Z”, where X and Y are individual
variables and Z is either the empty set of variables or an individual variable.
The d-separation criterion may also be used with sets of variables, although
this may be cumbersome. On the other hand, answering such queries is eﬃ-
cient using the directed global Markov criterion (Lauritzen, Dawid, Larsen
& Leimer 1990b), which is a criterion that is equivalent to the d-separation
criterion.

As statements of (conditional) d-separation/d-connection play a key role
in probabilistic networks, some shorthand notation is convenient. We shall use
the standard notation u ⊥G v to denote that vertices u and v are d-separated
in DAG G, or simply u ⊥ v if G is obvious from the context. By u ⊥ v | w
we denote the statement that u and v are d-separated given (hard) evidence
on w. ByU ⊥ V we denote the fact that u ⊥ v for each u ∈ U and each
v ∈ V. We shall use (cid:7)⊥ to denote d-connection.

Example 2.5 (Burglary or Earthquake, page 25). Some of the d-separation/d-
connection properties observed in the “Burglary or Earthquake” example are:

(1) Burglary ⊥ Earthquake
(2) Burglary (cid:7)⊥ Earthquake | Alarm
(3) Burglary ⊥ Radio report
(4) Burglary ⊥ Watson calls | Alarm

Also, notice that d-separation and d-connection depends on the informa-
tion available; i.e., it depends on what you know (and do not know). Also,
note that, d-separation and d-connection relations are always symmetric; i.e.,
u ⊥ v ≡ v ⊥ u.

2.6.1 d-Separation Criterion

Propositions 2.1–2.3 can be summarized into a rule known as d-separation
(Pearl 1988):

Proposition 2.4 (d-Separation). A path π = (cid:4)u, . . . , v(cid:5) in a DAG, G =
(V, E), is said to be blocked by S ⊆ V if π contains a vertex w such that either

2.6 Two Equivalent Irrelevance Criteria

33

• w ∈ S and the edges of π do not meet head-to-head at w, or
• w (cid:7)∈ S, de(w) ∩ S = ∅, and the edges of π meet head-to-head at w.

For three (not necessarily disjoint) subsets A, B, S of V, A and B are said to
be d-separated if all paths between A and B are blocked by S.

Proposition 2.4 on the facing page says, for example, that two vertices u
and v are d-separated if for each path between u and v there is a vertex w
such that the edges of the path meet head-to-head at w.

Example 2.6 (d-Separation). We may use Proposition 2.4 to determine if, for
example, variables C and G are d-separated in the DAG in Figure 2.11; that
is, are C and G independent when no evidence about any of the variables is
available? First, we ﬁnd that there is a diverging connection C ← A → D
allowing transmission of information from C to D via A. Second, there is a
serial connection A → D → G allowing transmission of information from A
to G via D. So, information can thus be transmitted from C to G via A and
D, meaning that C and G are not d-separated (i.e., they are d-connected).

A

B

C

D

E

(1) C and G are d-connected

(2) C and E are d-separated

(3) C and E are d-connected given evidence on G

(4) A and G are d-separated given evidence on D

F

G

and E

(5) A and G are d-connected given evidence on

H

D

Fig. 2.11. Sample DAG with a few sample dependence (d-connected) and indepen-
dence (d-separated) statements.

C and E, on the other hand, are d-separated, since each path from C to
E contains a converging connection, and since no evidence is available, each
such connection will not allow transmission of information. Given evidence
on one or more of the variables in the set {D, F, G, H}, C and E will, however,
become d-connected. For example, evidence on H will allow the converging
connection D → G ← E to transmit information from D to E via G, as H is a
child of G. Then information may be transmitted from C to E via the diverging
connection C ← A → D and the converging connection D → G ← E.

2.6.2 Directed Global Markov Criterion

The directed global Markov criterion (Lauritzen et al. 1990b) provides a cri-
terion that is equivalent to that of the d-separation criterion, but which in

34

2 Networks

some cases may prove more eﬃcient in terms of requiring less inspections of
possible paths between the involved vertices of the graphs.

Proposition 2.5 (Directed Global Markov Criterion). Let G = (V, E)
be a DAG and A, B, S be disjoint sets of V. Then each pair of vertices (α ∈
A, β ∈ B) are d-separated by S whenever each path from α to β is blocked by
vertices in S in the graph

(cid:2)

GAn(A∪B∪S)

(cid:3)m

.

Although the criterion might look somewhat complicated at a ﬁrst glance,
it is actually quite easy to apply. The criterion says that A ⊥G B | S if all paths
from A to B passes at least one vertex in S in the moral graph of the sub-DAG
induced by the ancestral set of A ∪ B ∪ S.

Example 2.7 (Directed Global Markov Criterion). Consider the DAG, G =
(V, E), in Figure 2.12(a), and let the subsets A, B, S ⊆ V be given as shown in
Figure 2.12(b). That is, we ask if A ⊥G B | S. Using Proposition 2.5, we ﬁrst

S

B

A

(a): G

(b): G

(c): GAn(A∪B∪S)

(cid:2)

(d):

GAn(A∪B∪S)

(cid:3)m

Fig. 2.12. (a) A DAG, G. (b)G with subsets A, B, and S indicated, where the
variables in S are assumed to be observed. (c) The subgraph induced by the ancestral
set of A ∪ B ∪ S. (d) The moral graph of the DAG of part (c).

remove each vertex not belonging to the ancestral set An(A∪B∪S). This gives
us the DAG in Figure 2.12(c). Second, we moralize the resulting sub-DAG,
which gives us the undirected graph in Figure 2.12(d). Then, to answer the

query, we consult this graph to see if there is a path from a vertex in A to a
vertex in B that do not contain a vertex in S. Since this is indeed the case,
we conclude that A (cid:7)⊥G B | S.

2.7 Summary

35

2.7 Summary

In this chapter we ﬁrst deﬁned some key concepts used to describe the qual-
itative part (i.e., the graphical structure) of probabilistic networks that are
given by acyclic, directed graphs (DAGs). We deﬁned the notion of the moral
graph of a DAG, which plays an important role in understanding the inde-
pendence properties represented by a DAG and in generating a junction tree
for making inference in a probabilistic network (cf. Chapter 5).

We introduced the taxonomy of variables and vertices (the nodes of the
DAG of a probabilistic network that represent the chance and decision vari-
ables and the utility functions of the network) and discussed the notions of
product spaces over the domains of variables and projections down to smaller-
dimensional spaces, which play a crucial role in inference processes (in Chap-
ter 3 we shall see how the operation of projection is deﬁned for probability
functions). Also, the notion of evidence was brieﬂy touched upon, including
the distinction between hard and soft evidence.

To understand the notion of (conditional) independence in probabilistic
networks, we discussed the three fundamental constructs (serial, diverging,
and converging connections), in terms of which any path X ∼ Y ∼ Z of a DAG
can be described. When the directed links of a DAG can be interpreted as
causal links the three fundamental constructs have clear relevance properties,
which can be described collectively by means of the d-separation criterion that
can be used to determine if information about one set of variables is relevant
to another set of variables, possibly given information about the states of a
third set of variables (i.e., can information ﬂow from the ﬁrst set to the second
set given the third set). An equivalent criterion (the directed, global Markov
criterion), which uses the notion of moral graphs, was also presented.

In Chapter 3 we shall see that if a joint probability distribution factorizes
according to the structure of a DAG, then the DAG is a graphical representa-
tion of the independence properties of the distribution. We brieﬂy discussed
the importance of having the directed edges of a DAG of a probabilistic net-
work represent causal relations (i.e., the directed links should point from cause
to eﬀect). Otherwise, problems might arise both in terms of getting the right
(conditional) independence properties of the network and in terms of ease of
speciﬁcation of the conditional probabilities (parameters) of the network. This
important issue will be further discussed in Chapter 4 and Chapter 6.

36

2 Networks

Exercises

Exercise 2.1. For the discrete variables X, Y, and Z assume that dom(X) =
{0, 1}, dom(Y) = {good, bad}, and dom(Z) = {low, average, high}.

(a) What is ||(X, Y, Z)||?
(b) Specify dom(X, Y = good, Z).
(c) Let w = (1, good, high). Specify w{X,Z} and wY.
(d) Specify evidence functions for Z that indicate

(i) Z = low with certainty,
(ii) Z (cid:7)= low and Z = high is three times as likely as Z (cid:7)= average.

Exercise 2.2. Direct the links below such that the parent nodes represent
the causes and the child nodes represent the eﬀects.

Fever

(a) Flu
(b) State of battery
(c) Living standard
(d) Age
(e) Occupation
(f) Fake die

Number of children

Education
Number of 6s

Age of battery
Education

Exercise 2.3. Consider the DAG in Figure 2.11 on page 33. Use the d-
separation criterion to test which of the following statements are true.

(a) A ⊥ B
(b) A ⊥ B | C
(c) A ⊥ B | {C, D}
(d) B (cid:7)⊥ F
(e) B ⊥ F | E
(f) B ⊥ F | {D, E}
(g) F ⊥ G
(h) F ⊥ G | E
(i) F ⊥ G | {A, E}

with G given by the DAG
Exercise 2.4. Draw the graphs
in Figure 2.11 on page 33 and A, B, S given in Exercise 2.3(a)–(i), and verify
your answers in Exercise 2.3 using the directed global Markov criterion.

GAn(A∪B∪S)

(cid:2)

(cid:3)m

3

Probabilities

As mentioned in Chapter 2, probabilistic networks have a qualitative aspect
and a corresponding quantitative aspect, where the qualitative aspect is given
by a graphical structure in the form of an acyclic, directed graph (DAG)
that represents the (conditional) dependence and independence properties of
a joint probability distribution deﬁned over a set of variables that are indexed
by the vertices of the DAG.

The fact that the structure of a probabilistic network can be character-
ized as a DAG derives from basic axioms of probability calculus leading to
recursive
factorization of a joint probability distribution into a product of
lower-dimensional conditional probability distributions. First, any joint prob-
ability distribution can be decomposed (or factorized) into a product of con-
ditional distributions of diﬀerent dimensionality, where the dimensionality of
the largest distribution is identical to the dimensionality of the joint distri-
bution.1 This gives rise to a densely connected DAG. Second, statements of
local conditional independences manifest themselves as reductions of dimen-
sionalities of some of the conditional probability distributions. Most often,
these independence statements give rise to dramatic reductions of complexity
of the DAG such that the resulting DAG appears to be quite sparse.

In fact, a joint probability distribution, P, can be decomposed recursively
in this fashion if and only if there is a DAG that correctly represents the
(conditional) dependence and independence properties of P. This means that
a set of conditional probability distributions speciﬁed according to a DAG,
G = (V, E), (i.e., a distribution P(A | pa(A)) for each A ∈ V) deﬁne a joint
probability distribution.

Therefore, a probabilistic network model can be speciﬁed either through
direct speciﬁcation of a joint probability distribution, or through a DAG (typ-
ically) expressing cause–eﬀect relations and a set of corresponding conditional

1 The dimensionality of a function is deﬁned as the number of variables over which

the function is deﬁned.

38

3 Probabilities

probability distributions. Obviously, a model is almost always speciﬁed in the
latter fashion.

This chapter presents some basic axioms of probability calculus from which
the famous Bayes’ rule follows as well as the chain rule for decomposing a
joint probability distribution into a product of conditional distributions. We
shall also present the fundamental operations needed to perform inference in
probabilistic networks.

3.1 Basics

This section deﬁnes some basic concepts and axioms of Bayesian probability
theory. These include events, conditional probability, and three basic axioms.

3.1.1 Events

The language of probabilities consists of statements (propositions) about prob-
abilities of events. The probability of an event a is denoted P(a). An event can
be considered as an outcome of an experiment (e.g., a coin ﬂip), a particular
observation of a value of a variable (or set of variables), an assignment of a
value to a variable (or set of variables), etc. As a probabilistic network deﬁne
a probability distribution over a set of variables, V, in our context an event is
a conﬁguration, x ∈ dom(X), (i.e., a vector of values) of a subset of variables
X ⊆ V.

Example 3.1 (Burglary or Earthquake, page 25). Assume we observe W = yes
and R = yes. This evidence is given by the event ε = (W = yes, R = yes),
and the probability, P(ε) denotes the probability of this particular piece of
evidence, namely that both W = yes and R = yes are observed.

3.1.2 Conditional Probability

The basic concept in the Bayesian treatment of uncertainty is that of condi-
tional probability: Given event b, the conditional probability of event a is x,
written as

P(a | b) = x.

This means that if b is true and everything else known is irrelevant for a, then
the probability of a is x.

Example 3.2 (Burglary or Earthquake, page 25). Assume that the alarm
sounds in eight of every ten cases when there is an earthquake but no
burglary. This fact would then be expressed as the conditional probability
P(A = yes | B = no, E = yes) =0.8 .

3.1 Basics

39

3.1.3 Axioms

The following three axioms provide the basis for Bayesian probability calculus.

Axiom 3.1. For any event, a, 0 ≤ P(a) ≤ 1, withP (a) = 1 if and only if a
occurs with certainty.

Axiom 3.2. For any two mutually exclusive events a and b the probability
that either a or b occur is

P(a or b) ≡ P(a ∨ b) = P(a) + P(b).

In general, if events a1, . . . , an are pairwise incompatible, then

(cid:6)

ai

= P(a1) + · · · + P(an) =

(cid:4)

n(cid:5)

P

i

n(cid:10)

i

P(ai).

Axiom 3.3. For any two events a and b the probability that both a and b
occur is

P(a and b) ≡ P(a, b) = P(b | a)P(a) = P(a | b)P(b).

P(a, b) is called the joint probability of the events a and b.

Axiom 3.1 simply says that a probability is a non-negative real number
less than or equal to 1, and that it equals 1 if and only if the associated event
has happened for sure.

Axiom 3.2 says that if two events cannot co-occur, then the probability
that either one of them occurs equals the sum of the probabilities of their
individual occurrences.

Axiom 3.3 is sometimes referred to as the fundamental rule of probability
calculus. The axiom says that the probability of the co-occurrence of two
events, a and b can be computed as the product of the probability of event
a (b) occurring conditional on the fact that event b (a) has already occurred
and the probability of event b (a) occurring.

Example 3.3. Consider the events “The cast of the die gives a 1” and “The
cast of the die gives a 6”. Obviously, these events are mutually exclusive, and
the probability that one of them is true equals the sum of the probabilities
that the ﬁrst event is true and that the second event is true. Thus, intuitively,
Axiom 3.2 makes sense.

Note that if a set of events, {a1, . . . , an}, is an exhaustive set of outcomes

of some experiment (e.g., cast of a die), then

(cid:6)

i P(ai) = 1.

Example 3.4 (Balls in An Urn). Assume we have an urn with 2 red, 3 green,
and 5 blue balls. The probabilities of picking a red, a green, or a blue ball are

P(red) = 2
10

= 0.2, P(green) = 3
10

= 0.3, P(blue) = 5
10

= 0.5.

,

= 1
9
= 3
9
= 5
9

.

10 − 1

40

3 Probabilities

By Axiom 3.2 on the previous page we get the probability of picking either a
green or a blue ball:

P(green or blue) = P(green) + P(blue) = 0.8.

Similarly, the probability of picking either a red, a green, or a blue is 1.
Without replacement, the color of the second ball depends on the color of the
ﬁrst ball. If we ﬁrst pick a red ball (and keep it), then the probabilities of
picking a red, a green, or a blue ball as the next one are, respectively,
P(2nd-is-red | 1st-was-red) = 2 − 1
10 − 1
P(2nd-is-green | 1st-was-red) = 3

,

P(2nd-is-blue | 1st-was-red) = 5

10 − 1

By Axiom 3.3 on the preceding page we get the probability that the 1st ball
is red and the 2nd is red:

P(1st-was-red, 2nd-is-red) =P

(2nd-is-red | 1st-was-red)P(1st-was-red)
· 1
5

= 1
45

= 1
9

Similarly, the probabilities that the 1st ball is red and the 2nd is green/blue
are

P(1st-was-red, 2nd-is-green) =P

P(1st-was-red, 2nd-is-blue) =P

,

= 1
15

(2nd-is-green | 1st-was-red)P(1st-was-red)
· 1
5

= 1
3
(2nd-is-blue | 1st-was-red)P(1st-was-red)
· 1
5

= 5
9

= 1
9

,

respectively.

3.2 Probability Distributions for Variables

Probabilistic networks are deﬁned over a (ﬁnite) set of variables, each of which
represents a ﬁnite set of exhaustive and mutually exclusive states (or events);
see Section 2.2 on page 20. Thus, (conditional) probability distributions for
variables (i.e., over exhaustive sets of mutually exclusive events) play a very
central role in probabilistic networks.

If X is a (random) variable with domain dom(X) = (x1, . . . , x||X||), then
P(X) denotes a probability distribution (i.e., a vector of probabilities summing
to 1), where

3.2 Probability Distributions for Variables

41

(cid:2)

P(X) =

P(X = x1), . . . , P(X = x||X||)

(cid:3)

.

If no confusion is possible, we shall often use P(x) as short for P(X = x), etc.
If the probability distribution for a variable Y is given conditional on a
variable (or set of variables) X, then we shall use the notation P(Y | X). That is,
for each possible value (state), x ∈ dom(X), we have a probability distribution
P(Y | X = x); again, if no confusion is possible, we shall often write P(Y | x).

Example 3.5 (Balls in An Urn, page 39). Let X1 represent the following ex-
haustive set of mutually exclusive events:

dom(X1) = {“1st ball is red”, “1st ball is green”, “1st ball is blue”}.

If we deﬁne X1 to denote the random variable “The color of the 1st ball drawn
from the urn”, then we may deﬁne dom(X1) = {red, green, blue}. Similarly, if
we deﬁne X2 to denote the random variable “The color of the 2nd ball drawn
from the urn”, then dom(X2) =dom(X 1). From Example 3.4 on page 39 we
get

(cid:7)

P(X1) =

P(X2 | X1 = red) =

(cid:8)

,

2
10

,

3
10
(cid:7)

,

5
10

(cid:8)

.

1
9

,

3
9

,

5
9

P(X2 | X1) can be described in terms of a table of three (conditional) distrib-
utions:

P(X2 | X1) =

X2 = red

X2 = green

X2 = blue

X1 = red X1 = green X1 = blue
2
9
2
9
5
9

2
9
3
9
4
9

1
9
3
9
5
9

Note that the probabilities in each column sum to 1.

3.2.1 Rule of Total Probability

Let P(X, Y) be a joint probability distribution for two variables X and Y
with dom(X) = {x1, . . . , xm} and dom(Y) ={y 1, . . . , yn}. Using the fact that
dom(X) and dom(Y) are exhaustive sets of mutually exclusive states of X and
Y, respectively, Axiom 3.2 on page 39 gives us the rule of total probability:

∀i : P(xi) = P(xi, y1) + · · · + P(xi, yn) =

n(cid:10)

j=1

P(xi, yj).

(3.1)

Using Equation 3.1, we can calculate P(X) from P(X, Y):

42

3 Probabilities

P(X) =

⎛

n(cid:10)

⎝

j=1

P(x1, yj), . . . ,

⎞

P(xm, yj)

⎠ .

n(cid:10)

j=1

In a more compact notation, we may write P(X) as

n(cid:10)

P(X) =

P(X, yj),

or even shorter as

j=1

(cid:10)

Y

P(X) =

P(X, Y),

(3.2)

denoting the fact that we sum over all indices of Y. We shall henceforth refer
to the operation in Equation 3.2 as marginalization or projection.2 Also, we
sometimes refer to this operation as “marginalizing out Y” ofP (X, Y).

Example 3.6 (Balls in An Urn, page 39). Using Axiom 3.3 on page 39 for each
combination of states of X1 and X2 of Example 3.5 on the preceding page, we
can compute

P(X1 = red, X2 = red) =P

=

=

· 1
9

(X1 = red)P(X2 = red | X1 = red)
2
10
1
45

,

etc. That is, we get P(X1, X2) by combining P(X1) and P(X2 | X1):

P(X1, X2) =

X2 = red

X2 = green

X2 = blue

X1 = red X1 = green X1 = blue
1
15
1
15
1
6

1
45
1
15
1
9

1
9
1
6
2
9

(Note that the numbers in the table sum to 1.) Now, through marginalization
we get

P(X2) = P(X1 = red, X2) + P(X1 = green, X2) + P(X1 = blue, X2)
⎞

⎞

⎛

⎞

⎞

⎛

⎛

⎛

=

⎜
⎜
⎜
⎜
⎜
⎝

⎟
⎟
⎟
⎟
⎟
⎠

⎜
⎜
⎜
⎜
⎜
⎝

+

⎟
⎟
⎟
⎟
⎟
⎠

⎜
⎜
⎜
⎜
⎜
⎝

+

⎟
⎟
⎟
⎟
⎟
⎠

⎜
⎜
⎜
⎜
⎜
⎝

=

1
15
1
15
1
6

1
9
1
6
2
9

1
45
1
15
1
9

⎟
⎟
⎟
⎟
⎟
⎠

.

1
5
3
10
1
2

2 See Section 3.3.3 on page 46 for more on marginalization.

3.2 Probability Distributions for Variables

43

That is, the probabilities of getting a red, a green, and a blue ball in the second
draw are, respectively, 0.2, 0.3, and 0.5, given that we know nothing about
the color of the ﬁrst ball. That is, P(X2) = P(X1) = (0.2, 0.3, 0.5), whereas,
for example, P(X2 | X1 = red) = (0.1111, 0.3333, 0.5556); i.e., once the color of
the ﬁrst ball is known, our belief about the color of the second changes.

3.2.2 Graphical Representation

The conditional probability distributions of probabilistic networks are of the
form

P(X | Y),

where X is a single variable and Y is a (possibly empty) set of variables. X and
Y are sometimes called the head and the tail, respectively, of P(X | Y). If Y = ∅
(i.e., the empty set), P(X | Y) is often called a marginal probability distribution
and is then written as P(X). This relation between X and Y = {Y1, . . . , Yn}
can be represented graphically as the DAG illustrated in Figure 3.1, where
the child vertex is labelled “X”and the parent vertices are labelled “Y1”, “Y2”,
etc.

Y1

Yn

X

Fig. 3.1. Graphical representation of P(X | Y1, . . . , Yn).

Example 3.7 (Burglary or Earthquake, page 25). Consider the variables B
(Burglary), E (Earthquake), and A (Alarm), where B and E are possible causes
of A. A natural way of specifying the probabilistic relations between these
three variables, would be through a conditional probability distribution for A
given B and E. Thus, for each combination of outcomes (states) of B and E,
we need to specify a probability distribution over the states of A:

B = no

B = yes

P(A | B, E) =

A E = no E = yes E = no E = yes
no
yes

0.99
0.01

0.01
0.99

0.1
0.9

0.1
0.9

.

This conditional probability table expresses the probability (whether obtained
as an objective frequency or a subjective belief) of an alarm if either a burglary
or an earthquake has taken place (but not both) to be 0.9, etc.

44

3 Probabilities

3.3 Probability Potentials

In working with probabilistic networks the notion of “potentials” often ap-
pears to be convenient. Formally, a probability potential
is a non-negative
function deﬁned over the product space over the domains of a set of variables.
We shall use Greek letters (φ, ψ, etc.) to denote potentials, and sometimes
use subscripts to identify their domain (e.g., φX denotes a potential deﬁned
on dom(X)) or to indicate that a potential φX is a marginal potential of φ.3

3.3.1 Normalization

A (probability) potential, φX deﬁned on dom(X), is turned into a probability
distribution, P(X), through the operation known as normalization. We shall
use the notation η(φX) to denote normalization of φX, whereη(φ X) is deﬁned
as

η(φX) (cid:1)= φX(cid:6)

X φX

.

(3.3)

Hence, P(X) = η(φX). The conditional probability distribution P(X | Y) can be
obtained from the joint distribution P(X, Y) through conditional normalization
with respect to X:

ηX(P(X, Y)) (cid:1)= P(X, Y)
Y P(X, Y)

(cid:6)

= P(Y | X).

In general,

ηX (cid:2)(P(X)) (cid:1)=

(cid:6)

P(X)
X\X (cid:2) P(X)

= P(X \ X (cid:2) | X (cid:2)),

(3.4)

where X (cid:2) is a subset of the set of variables X. In particular,

η(P(X)) = η∅(P(X)) = P(X),

whenever P(X) is a probability distribution over X. This also holds true for
conditional distributions:

since

ηY(P(X | Y)) = P(X | Y),

(cid:10)

X

P(X | Y) = 1Y,

(3.5)

where 1Y denotes a vector of 1s over dom(Y). A uniform potential, e.g. 1Y, is
called a vacuous potential. Intuitively, a vacuous potential can be thought of
as a non-informative (or superﬂuous) potential.

We shall be using the notion of potentials extensively in Chapters 4 and 5,
but for now we will just give a couple of simple examples illustrating the
usefulness of this notion.
3 Note that the two interpretations are consistent. See Section 3.3.3 on page 46 for

details on marginalization.

Example 3.8. Let P(A, B) = P(A)P(B | A) be a factorization of the joint distri-
bution for the Boolean variables A and B, and assume that P(A) and P(B | A)
are given by the potentials φ and ψ, respectively, where

3.3 Probability Potentials

45

Then

and

B A = false A = true

φ = (1, 2)

and

ψ =

false
true

P(A) =η( φ) =

.

7
1

5
3

(cid:8)

(cid:7)

1
3

,

2
3

P(B | A) = ηA(ψ) =

B A = false A = true

false

true

5
8

3
8

.

7
8

1
8

(cid:6)

Also, P(A, B) =η(φ ∗ ψ).4 Note, however, that for non-uniform normalization
B ψ =
constants
(8, 8), and hence P(A, B) = η(φ ∗ ψ).

B ψ in ηA(ψ), in general, P(A, B) (cid:7)= η(φ∗ψ). In our case,

(cid:6)

3.3.2 Evidence Potentials

As indicated in Section 2.3 on page 23, evidence functions are actually poten-
tials. To compute the joint posterior distribution resulting from incorporating
a set of observations in the form of evidence functions, we simply extend the
set of probability function constituents (possibly in the form of potentials)
with corresponding evidence potentials, multiply, and normalize the product.
Before any evidence has been taken into account the probability distrib-
ution P(X (cid:2)) for a subset X (cid:2) ⊆ X of variables is referred to as the prior prob-
ability distribution for X (cid:2). The conditional probability distribution P(X (cid:2) | ε),
where ε denotes evidence, is referred to as the posterior probability distrib-
ution for X (cid:2) given ε. Given an evidence potential EE on a subset E ⊆ X \ X (cid:2)
(expressing ε), the posterior joint distribution is obtained as

P(X (cid:2), ε) =

(cid:10)

X\X (cid:2)

P(X) ∗ EE,

and the posterior conditional distribution is achieved through normalization

P(X (cid:2) | ε) = η(P(X (cid:2), ε)).

We deﬁne P(X) ∗ EE to have dimensionality |X \ E|. Thus, multiplication of
P(X) with EE gives rise to a dimensionality decrease by |E|.

4 See Section 3.3.3 for a deﬁnition of combination of potentials.

46

3 Probabilities

Example 3.9 (Example 3.8 continued). Assume that we observe B = true, rep-
resented by the evidence potential EB = (0, 1). Then the posterior marginal
distribution, P(A | ε), is given by

P(A | ε) = η(φ ∗ ψ ∗ EB) =

(cid:7)

(cid:8)

,

3
5

,

2
5

where the two-dimensional potential ψ on A and B reduces to the one-
dimensional potential (3, 1) on A when multiplied by the evidence poten-
tial EB.

3.3.3 Potential Calculus

To perform inference in probabilistic networks we only need a few simple oper-
ations, namely multiplication (combination), division, addition, and marginal-
ization (projection). These are all deﬁned very straightforwardly as follows.

Let φ and ψ be potentials deﬁned on dom(X) and dom(Y), respectively,

and let z ∈ dom(X ∪ Y) be an arbitrary element (conﬁguration).

We then deﬁne φ ∗ ψ as

(φ ∗ ψ)(z) (cid:1)= φ(zX)ψ(zY),

(3.6)

where zX and zY are projections of z to dom(X) and dom(Y), respectively.5
Addition is deﬁned analogously. We need to take special care to avoid division
by zero, but otherwise division is deﬁned in the obvious way:
⎧
⎨

(φ/ψ)(z) (cid:1)=

⎩

0
φ(zX)/ψ(zY)
undeﬁned

if φ(zX) = 0
if ψ(zY) (cid:7)= 0
otherwise.

(3.7)

As we shall see later, for all relevant operations involved in inference in prob-
abilistic networks, φ(zX) = 0 implies ψ(zY) = 0 upon division of φ by ψ, and
thus, deﬁning 0/0 = 0, the division operator is always deﬁned.
(cid:6)

Let X (cid:2) ⊆ X and let φ be a potential deﬁned on dom(X). Thenφ X (cid:2) =
X\X (cid:2) φ denotes the marginalization (or projection) of φ to dom(X (cid:2)) and is
(cid:10)

deﬁned as

φX (cid:2) (x) (cid:1)=

φ(z.x),

(3.8)

z∈dom(X\X (cid:2))

where z.x is the element in dom(X) for which (z.x)X\X (cid:2) = z and (z.x)X (cid:2) = x.

Example 3.10. Let X = {A, B} and Y = {B, C, D}, where A, B, C, D are all
binary variables with dom(A) = {a1, a2}, etc. Letφ X and φY be potentials
deﬁned over dom(X) and dom(Y), respectively, where

5 As deﬁned in Section 2.2 on page 20.

3.3 Probability Potentials

47

φX =

b1
b2

a1

0.1
0.4

a2

0.9
0.6

and φY =

c1

c2

d1

0.11
0.23

d2

0.14
0.07

d1

0.06
0.18

.

d2

0.09
0.12

b1
b2

From Equation 3.6 we get ψ = φX ∗ φY to be

c1

c2

ψ =

d1
(0.011, 0.099)
(0.092, 0.138)

d2
(0.014, 0.126)
(0.028, 0.042)

d1
(0.006, 0.054)
(0.072, 0.108)

d2
(0.009, 0.081)
(0.048, 0.072)

,

b1
b2

where (φX ∗ φY)(a1, b1, c1, d1) =φ X(a1, b1)φY(b1, c1, d1) =0.1 · 0.11 =
0.011, (φX ∗ φY)(a2, b1, c1, d1) =φ X(a2, b1)φY(b1, c1, d1) =0.9 · 0.11 =
0.099, etc.

Now, if Z = {A, D}, then from Equation 3.8 we get the marginal of ψ with

respect to Z to be

ψZ =

d1
0.011 + 0.092 + 0.006 + 0.072
0.099 + 0.138 + 0.054 + 0.108

d2
0.014 + 0.028 + 0.009 + 0.048
0.126 + 0.042 + 0.081 + 0.072

a1
a2

d1

d2

=

a1
a2

0.181
0.399

,

0.099
0.321

where, for example, ψZ(a1, d1) = ψ((b1, c1).(a1, d1))+ψ((b2, c1).(a1, d1))+
ψ((b1, c2).(a1, d1)) + ψ((b2, c2).(a1, d1)) = 0.011 + 0.092 + 0.006 + 0.072 =
0.181. Note that ψ (and hence also ψZ) is a probability distribution (i.e.,
(cid:6)
x ψ(x) = 1), since φX is a conditional probability distribution for A given

B and φY is a joint probability distribution for {B, C, D}.

Distributive Law

Let φ and ψ be potentials deﬁned on dom(X) = {x1, . . . , xm} and dom(Y) =
{y1, . . . , yn}, where X ∩ Y = ∅. Using the distributive law, we then get

48

3 Probabilities
(cid:10)
(cid:10)

(φ ∗ ψ) =

(cid:10)

(cid:10)

φ(x)ψ(y)

X\X (cid:2)

Y\Y (cid:2)

x∈dom(X\X (cid:2))

y∈dom(Y\Y (cid:2))
= φ(x1)ψ(y1) + · · · + φ(x1)ψ(yn) + · · · +
φ(xm)ψ(y1) + · · · + φ(xm)ψ(yn)
= φ(x1) [ψ(y1) +· · · + ψ(yn)] + · · · +
φ(xm) [ψ(y1) + · · · + ψ(yn)]
φ(x)

ψ(y)

(cid:10)

(cid:10)

=

=

x∈dom(X\X (cid:2))
(cid:10)
(cid:10)

φ

ψ,

X\X (cid:2)

Y\Y (cid:2)

y∈dom(Y\Y (cid:2))

(3.9)

(cid:6)

(cid:6)

(cid:6)

(cid:6)

where X (cid:2) ⊆ X, Y (cid:2) ⊆ Y, and
Y ψ)). Thus,
if we wish to compute the marginal distribution (φ ∗ ψ)X (cid:2)∪Y (cid:2) and X ∩ Y = ∅,
then using the distributive law may help signiﬁcantly in terms of reducing the
computational complexity.

Y ψ is short for

X(φ ∗ (

X φ

Example 3.11. Let φ, ψ, andξ be potentials deﬁned on dom(A, B, C), dom(B,
D), and dom(C, D, E), respectively, and let EE be an evidence potential deﬁned
on dom(E), where the variables A, . . . , E are all binary. Assume that we wish
to compute P(A | ε), whereε denotes the evidence provided through EE. A
brute-force approach would be simply to combine all potentials, marginalize
out variables B, . . . , E, and normalize:

P(A | ε) = η

(cid:4)

(cid:10)

(cid:10)

(cid:10)

(cid:10)

B

C

D

E

(cid:6)

(φ ∗ ψ ∗ ξ ∗ EE)

.

Combining potentials ξ and EE requires 8 multiplications. Next, combining ψ
and ξ ∗ EE requires 16 multiplications, and, ﬁnally, combining φ and ψ ∗ ξ ∗ EE
requires 32 multiplications. Marginalizing out E, D, C, and B, respectively,
require 16, 8, 4, and 2 additions.

Alternatively, we could take advantage of the distributive law to compute

the same thing:

P(A | ε) = η

(cid:4)

(cid:10)

(cid:10)

(cid:10)

(cid:10)

φ

ψ

B

C

D

E

(cid:6)

(ξ ∗ EE)

.

First, combining ξ and EE requires 8 multiplications. Then, marginalizing
out E requires 4 additions. Multiplying the resulting potential by ψ requires
8 multiplications, and marginalizing out D requires 4 additions. Next, mul-
tiplying the resulting potential by φ requires 8 multiplications, and ﬁnally,
marginalizing out C and B requires 4 and 2 additions, respectively.

Summing up the number of arithmetic operations used in the two com-
putations we ﬁnd that the brute-force approach takes 56 multiplications and
30 additions, whereas the one exploiting the distributive law takes only 24

3.3 Probability Potentials

49

multiplications and 14 additions, less than half of what the brute-force ap-
proach requires. (On top of these numbers we should also count the number
of operations needed to normalize the ﬁnal marginal, but that is the same in
both cases.)

Note that the ordering (B, C, D, E) is just one out of 4! = 24 diﬀerent
sequences in which we might marginalize out these four variables, and to each
ordering is associated a certain number of arithmetic operations required to
compute P(A | ε).

The single most important key to eﬃcient inference in probabilistic net-
works is the ability to take advantage of the distributive law (i.e., to ﬁnd
optimal (or near optimal) sequences in which the variables are marginalized
out). We shall return to this issue in Chapter 5.

3.3.4 Barren Variables

Variables of a probabilistic network that have no descendants and are never
observed are called barren variables, as they provide no information relevant
for the inference process. In fact, they provide “information” in the form of
vacuous potentials (cf. Equation 3.5 on page 44), and may hence be removed
from the network.
Example 3.12. Consider a model P(X, Y, Z) = P(X)P(Y | X)P(Z | Y) over the
variables X, Y, andZ. Following the discussion in Section 3.2.2 on page 43,
this model can be represented graphically as indicated in Figure 3.2(a). Let
EY and EZ be evidence potentials for Y and Z, respectively, but where EZ
is always vacuous. Then the posterior probability distribution for X can be
calculated as

P(X | ε) = η

(cid:4)

(cid:10)

P(Y | X) ∗ EY

(cid:6)

(cid:10)

Z
(cid:10)

Z

P(Z | Y) ∗ EZ

(cid:6)

P(Z | Y)
(cid:6)

(cid:4)

Y
(cid:10)

(cid:4)

Y
(cid:10)

(cid:4)

Y
(cid:10)

Y

= η

= η

= η

P(Y | X) ∗ EY

P(Y | X) ∗ EY ∗ 1Y

(cid:6)

P(Y | X) ∗ EY

,

(cid:6)

Z P(Z | Y) =1 Y follows from Equation 3.5 on page 44 and ε de-
where
notes the evidence. This means that the term P(Z | Y) can be neglected in
the inference process, and the model can be simpliﬁed to the one shown in
Figure 3.2(b), as variable Z is barren.

We shall return to the issue of barren variables in more detail in Sec-

tion 5.1.1 on page 108.

50

3 Probabilities

X

Y

Z

(a)

X

Y

(b)

Fig. 3.2. (a) Model for P(X, Y, Z). (b) Equivalent model when Z is barren.

3.4 Fundamental Rule and Bayes’ Rule

Generalizing Axiom 3.3 on page 39 to arbitrary (random) variables X and Y
we get the fundamental rule of probability calculus:

P(X, Y) = P(X | Y)P(Y) = P(Y | X)P(X).

(3.10)

Bayes’ rule follows immediately from Equation 3.10:

P(Y | X) = P(X | Y)P(Y)

P(X)

.

(3.11)

Using Axiom 3.3 on page 39 and the rule of total probability, Equation 3.11
can be rewritten as

P(Y | X) =

P(X | Y)P(Y)
P(X | Y = y1)P(Y = y1) + · · · + P(X | Y = yn)P(Y = y||Y||)

.

That is, the denominator in Equation 3.11 can be derived from the numerator
in Equation 3.11. Since, furthermore, the denominator is obviously the same
for all states of Y, we often write Bayes’ rule as

P(Y | X) ∝ P(X | Y)P(Y),

(3.12)

read as “P(Y | X) is proportional to P(X | Y)P(Y)”. Note that the proportionality
factor P(X)−1 is in fact a vector of proportionality constants, one for each state
of X, determined in a normalization operation.

Division by zero in Equation 3.11 is not a problem if we deﬁne 0/0 = 0,

since for

P(xi) =

(cid:10)

j

P(xi | yj)P(yj)

to be zero at least one of P(xi | yj) and P(yj) must be zero for each j, and if this
is the case then both the numerator term, P(xi | yj)P(yj), and the denominator
term, P(xi), of Equation 3.11 will be zero.

3.4 Fundamental Rule and Bayes’ Rule

51

Example 3.13 (Burglary or Earthquake, page 25). Given P(E) = (0.01, 0.99),
P(B) = (0.1, 0.9), and the conditional probability table (CPT) for P(A | B, E)
from Example 3.7 on page 43, we can use Bayes’ rule to compute P(B | A), the
conditional probability distribution for burglary (B) given alarm (A):

P(B | A) ∝

(cid:10)

E

P(A | B, E)P(B)P(E) =P (A, B).

First, we compute the joint distribution for A, B, andE:

P(A, B, E) = P(A | B, E)P(B)P(E)
B = no

B = yes

=

A E = no
no
0.88209
yes
0.00891

E = yes E = no
0.0099
0.0009
0.0891
0.0081

E = yes
0.00001
0.00099

.

Next, we marginalize out E of P(A, B, E) to obtain

P(A, B) =

(cid:10)

E

P(A, B, E) =

A B = no
no
0.88299
yes
0.00991

B = yes
0.00991
0.09009

Finally, we normalize P(A, B) with respect to A, and get

P(B | A) = ηA(P(A, B)) =

B A = no A = yes
no
0.1588
yes
0.8412

0.9889
0.0111

.

.

3.4.1 Interpretation of Bayes’ Rule

Since Bayes’ rule is so central to inference in Bayesian probability calculus, let
us dwell a little on how Bayes’ rule can be used and understood. Assume that
we have two (possibly, sets of) variables X and Y, a model P(X, Y) given in
the factorized form P(X | Y)P(Y), and that we observe X = x. We would then
typically want to compute P(Y | x).

The prior distribution, P(Y), expresses our initial belief about Y, and the
posterior distribution, P(Y | x), expresses our revised belief about Y in light
of the observation X = x. Bayes’ rule tells us how to obtain the posterior
distribution by multiplying the prior P(Y) by the ratio P(x | Y)/P(x), known
as the normalized likelihood of Y given x. Again, since P(x) is a constant for
each y ∈ dom(Y), we get

P(Y | x) ∝ P(Y)P(x | Y).

The quantity P(x | Y) (cid:1)= L(Y | x) is called the likelihood of Y given x. Hence, we
have

52

3 Probabilities

P(Y | x) ∝ P(Y)L(Y | x).

(3.13)

In general,

posterior ∝ prior × likelihood.

In a machine learning context, Bayes’ rule plays an important role. For
example, consider a prior distribution, P(M), for a random variable M, ex-
pressing a set of possible models. For any value d of another variable D,
expressing data, the quantity P(d | M) — considered as a function of M — is
the likelihood function for M given data d. The posterior distribution for M
given the data is then

P(M | d) ∝ P(M)P(d | M),

which provides a set of goodness-of-ﬁt measures for models M (i.e., we obtain
a conditional probability P(m | d) for each m ∈ dom(M)).

Arc Reversal

Application of Bayes’ rule can also be given a graphical interpretation. Con-
sider, for example, two variables A and B and a model P(A, B) = P(A)P(B | A).
Again, following the discussion in Section 3.2.2 on page 43, this model can be
represented graphically as indicated in Figure 3.3(a). Applying Bayes’ rule on

A

B

A

B

P(A, B) = P(A)P(B | A)

P(A, B) = P(B)P(A | B)

(a)

(b)

Fig. 3.3. Two equivalent models that can be obtained from each other through arc
reversal.

this model:

P(A | B) = P(A)P(B | A)
(cid:6)

= P(A, B)
P(B)

,

A P(A)P(B | A)
we obtain an equivalent model shown in Figure 3.3(b). Thus, one way of
interpreting the application of Bayes’ rule is through so-called arc reversal.
As the typical inference task in probabilistic networks can be described as
computing P(X | ε), inference in probabilistic networks can be thought of as
(repetitive) application of Bayes’ rule or, in other words, as a sequence of
arc reversals. Olmsted (1983) and Shachter (1990) have exploited this view of
inference in his arc reversal algorithm for inference in probabilistic networks.

3.5 Bayes’ Factor

53

Example 3.14 (Arc Reversal). Consider the model in Figure 3.4(a), and as-
sume that we wish to calculate the posterior marginal distribution for X given
evidence, EZ, on Z. Using Shachter’s arc reversal procedure we may proceed
as follows:

(cid:4)

(cid:10)

(cid:10)

P(X)P(Y | X)P(Z | Y)EZ

(cid:6)

(cid:4)

Y
(cid:10)

Z
(cid:10)

(cid:4)

Y
(cid:10)

Z
(cid:10)

(cid:4)

Y
(cid:10)

Z
(cid:10)

(cid:6)

P(X)P(Y, Z | X)EZ

P(X) P(Y, Z | X)
(cid:6)
Y P(Y, Z | X)

(3.14)

(cid:6)

P(Y, Z | X)EZ

(3.15)

(cid:10)

Y

(cid:6)

P(X)P(Y | X, Z)P(Z | X)EZ

Z

P(X)P(Z | X)EZ

(cid:6)

P(Y | X, Z)

(cid:10)

Y
(cid:6)

(3.16)

(3.17)

(3.18)

P(X)P(Z | X)EZ

(cid:6)

P(X)P(Z | X)
X P(X)P(Z | X)
(cid:6)

(cid:10)

X

P(X | Z)P(Z)EZ

,

(cid:6)

P(X)P(Z | X)EZ

(3.19)

(3.20)

P(X | ε) = η

= η

= η

= η

= η

= η

= η

= η

(cid:4)

Y
(cid:10)

(cid:4)

Z
(cid:10)

(cid:4)

Z
(cid:10)

(cid:4)

Z
(cid:10)

Z

where we combine P(Y | X) and P(Z | Y) into P(Y, Z | X) (3.14), use Bayes’ rule
to reverse Y → Z (3.15), which induces a new edge X → Z (3.16), use the
distributive law (3.17), eliminate barren variable Y (3.18), and ﬁnally use
Bayes’ rule to reverse X → Z (3.19). Now, if EZ represent hard evidence (i.e.,
Z = z), (3.20) reduces to

i.e., a simple look-up.

P(X | ε) = P(X | Z = z),

We shall return to the arc reversal approach in more detail in Section 5.1.1

on page 111.

3.5 Bayes’ Factor

To calculate the relative support provided by an observation, Y = y, for two
competing hypotheses, H0 : X = x0 and H1 : X = x1, the notion of Bayes’
factor is useful:

54

3 Probabilities

X

Y

Z

(a)

X

Y

Z

(b)

X

Z

(c)

X

Z

(c)

Fig. 3.4. (a) Model for P(X, Y, Z). (b) Equivalent model obtained by reversing Y →
Z. (c) Equivalent model provided Y is barren. (d) Equivalent model obtained by
reversing X → Z.

B =

posterior odds
prior odds

= P(x0 | y)/P(x1 | y)
P(x0)/P(x1)

= P(y | x0)
P(y | x1)

= L(x0 | y)
L(x1 | y)

;

(3.21)

that is, the ratio of the likelihoods of the two hypotheses given the observation.
Bayes’ factor is also known as the Bayesian likelihood ratio.

From Equation 3.21 we see that

B > 1 if the observation provides more support for H0 than for H1,
B < 1 if the observation provides less support for H0 than for H1, and
B = 1 if the observation does not provide useful information for diﬀerentiating

between H0 and H1.

Example 3.15 (Balls in An Urn, page 39). Let hypotheses H0 and H1 be given
as

H0 : The second ball drawn will be green: X2 = green
H1 : The second ball drawn will be blue: X2 = blue,
and assume we observe that the ﬁrst ball drawn is blue (i.e., X1 = blue). Now,
using the numbers calculated in Example 3.5 on page 41, we get the Bayes’
factor

B = P(X2 = green | X1 = blue)/P(X2 = blue | X1 = blue)

P(X2 = green)/P(X2 = blue)

=

3

9

9 / 4
10 / 5

3

10

= 5
4

.

That is, since the posterior odds (3/4) is greater than the prior odds (3/5),
the observation provides more support for H0 than for H1. Still, however, the
probability that H1 is going to be true is greater than the probability that H0
is going to be true, as P(H0 | X1 = blue) = 3/9 and P(H1 | X1 = blue) = 4/9.

3.6 Independence

A variable X is independent of another variable Y with respect to a probability
distribution P if

P(x | y) = P(x), ∀x ∈ dom(X), ∀y ∈ dom(Y).

(3.22)

3.6 Independence

55

Using standard notation, we express this property symbolically as X ⊥⊥P Y,
or simply as X ⊥⊥ Y when P is obvious from the context. Symmetry of inde-
pendence (i.e., X ⊥⊥ Y ≡ Y ⊥⊥ X) can be veriﬁed from Bayes’ rule:

P(x | y) = P(x) = P(y | x)P(x)

P(y)

⇔ P(y | x) = P(y).

The statement X ⊥⊥ Y is often referred to as marginal independence between
X and Y.

A variable X is conditionally independent of Y given Z (with respect to a

probability distribution P) if

P(x | y, z) = P(x | z), ∀x ∈ dom(X), ∀y ∈ dom(Y), ∀z ∈ dom(Z).

(3.23)

The conditional independence statement expressed in Equation 3.23 is indi-
cated as X ⊥⊥ Y | Z in the standard notation. With a slight misuse of notation,
we shall also express this as P(X | Y, Z) =P (X | Z).6

Example 3.16 (Conditional Independence). Consider the Burglary or Earth-
quake example from page 25. With P(R | E) given as

P(R | E) =

R E = no E = yes
no
yes

0.999
0.001

0.01
0.99

and P(A, E) given as in Example 3.13 on page 51 we get

P(A | E, R) =

(cid:6)

P(A, E)P(R | E)
A P(A, E)P(R | E)
R = no

R = yes

=

and

A E = no E = yes E = no E = yes
no
0.091
yes
0.909

0.901
0.099

0.091
0.909

0.901
0.099

P(A | E) =

(cid:6)
(cid:6)

R P(A, E)P(R | E)
A,R P(A, E)P(R | E)

=

A E = no E = yes
no
0.091
yes
0.909

0.901
0.099

.

Obviously, P(A | E, R) = P(A | E). Thus, we conclude that A ⊥⊥P R | E.

6 The misuse is concerned with diﬀerences in dimensionalities of P(X | Y, Z) and

P(X | Z).

56

3 Probabilities

3.6.1 Independence and DAGs

Let P be a probability distribution over a set of variables V and let G = (V, E)
be a DAG. Then G is said to be a correct representation of the independence
properties of P if XA ⊥⊥P XB | XS whenever A ⊥G B | S for subsets A, B, S of V.
In other words, if for each pair of unconnected variables u, v ∈ V in G (i.e.,

G
(cid:7)∼ v) it holds true that there is a set S ⊆ V such that Xu ⊥⊥P Xv | XS, then
u
G is a correct representation of the independence properties of P. For brevity
we shall then say that “G is correct with respect to P”.

Note that a DAG that is correct with respect to a distribution P does not
necessarily represent all independence properties of P. In fact, the complete
graph is correct with respect to any distribution.

Deﬁnition 3.1 (Correctness and Completeness). Let P be a probability
distribution over a set of variables XV , whereG = (V, E) is a DAG over the
vertices that indexes these variables. Correctness and completeness of G with
respect to P are then deﬁned as follows:
A ⊥G B | S =⇒ XA ⊥⊥P XB | XS.
Correctness of G with respect to P:
Completeness of G with respect to P: A ⊥G B | S ⇐= XA ⊥⊥P XB | XS.
If G is correct with respect to P, then G is said to be an I-map of P. If G is
complete with respect to P, then G is said to be a D-map of P. If G is both
correct and complete with respect to P, then G is said to be a perfect map of
P.7

Example 3.17. Let X, Y, and Z be three variables for which X ⊥⊥P Y | Z. Follow-
ing the ordering (X, Y, Z) and using the fundamental rule (see Equation 3.10
on page 50) twice yields

P(X, Y, Z) = P(X | Y, Z)P(Y | Z)P(Z).

Since X ⊥⊥P Y | Z, this can be simpliﬁed to

P(X, Y, Z) = P(X | Z)P(Y | Z)P(Z).

(3.24)

Similarly, following the orderings (X, Z, Y) and (Y, Z, X) we get, respectively,

and

P(X, Y, Z) = P(X | Z)P(Z | Y)P(Y)

P(X, Y, Z) = P(Y | Z)P(Z | X)P(X).

(3.25)

(3.26)

Equations (3.24)–(3.26) have graphical representations as shown in Fig-
ures 3.5(a)–(c) (see Section 3.2.2 on page 43).

Only a subset of the independence properties that can exist in a probability
distribution can be represented by a DAG. That is, the DAG language is not
rich enough to simultaneously capture all sets of independence statements.

7 “I” stands for “independence” and “D” stands for “dependence”.

3.6 Independence

57

Z

Z

Z

X

Y

X

Y

X

Y

(a)

(b)

(c)

Fig. 3.5. Graphical representations of X ⊥⊥P Y | Z, representing, respectively, Equa-
tions (3.24)–(3.26).

Example 3.18. Consider the following set of independence statements for a
probability distribution P:

Xα ⊥⊥P Xβ
CID1 :
CID2 :
Xα ⊥⊥P Xδ | {Xβ, Xγ}
CID3 : Xβ ⊥⊥P Xγ | {Xα, Xδ}.

From these statements we can conclude that a DAG, G, over {α, β, γ, δ}
must include edges between each pair of vertices except (α, β), (α, δ), and
(β, γ), as at least one independence statement has been speciﬁed for each of
the variable pairs {Xα, Xβ}, {Xα, Xδ}, and {Xβ, Xγ}, respectively. A preliminary
skeleton of the possible DAGs therefore appears as shown in Figure 3.6(a).

α

γ

β

δ

α

γ

β

δ

α

γ

β

δ

(a)

(b)

(c)

Fig. 3.6. (a) Preliminary skeleton for the independence statements of Example 3.18.
(b) DAG representing CID1 and CID3. (c) DAG representing CID1 and CID2.

Recalling the d-separation criterion or the directed global Markov criterion
(see Section 2.6 on page 31) we see that for CID1 to hold true there must be
a converging connection at γ or δ. However, a converging connection at e.g.
γ implies α ⊥G δ, violating correctness of G. To remedy that, we will have to
include an edge between α and δ. Now, to ensure α ⊥G β, the edges α
δ and
δ must meet head-to-head at δ (i.e., must converge at δ). The resulting
β
DAG in Figure 3.6(b) is correct with respect to P but not complete as CID2
is not represented. Similarly, the DAG in Figure 3.6(c) represents CID1 and
CID2 but not CID3.

58

3 Probabilities

The DAGs in Figures 3.6(b) and 3.6(c) correctly represent the indepen-
dence statements of P; neither of the DAGs, however, represents all three
statements.

3.7 Chain Rule

For a probability distribution, P(X), over a set of variables X = {X1, . . . , Xn},
we can use the fundamental rule repetitively to decompose it into a product
of conditional probability distributions:

P(X) = P(X1 | X2, . . . , Xn)P(X2, . . . , Xn)

= P(X1 | X2, . . . , Xn)P(X2 | X3, . . . , Xn) · · · P(Xn−1 | Pn)P(Xn)

=

n(cid:5)

i=1

P(Xi | Xi+1, . . . , Xn).

(3.27)

Notice that the actual conditional distributions that comprise the factors
of the decomposition are determined by the order in which we select the head
variables of the conditional distributions. Thus, there are n factorial diﬀerent
factorizations of P(X), and to each factorization corresponds a unique DAG,
but all of these DAGs are equivalent in terms of dependence and indepen-
dence properties, as they are all complete graphs, and hence represent no
independence statements.

Example 3.19 (Chain Decomposition and DAGs). Let V = {α, β, γ, δ}. Then
P(XV ) factorizes as

P(XV ) = P(Xα, Xβ, Xγ, Xδ) = P(Xα | Xβ, Xγ, Xδ)P(Xβ, Xγ, Xδ)
= P(Xα | Xβ, Xγ, Xδ)P(Xβ | Xγ, Xδ)P(Xγ, Xδ)
= P(Xα | Xβ, Xγ, Xδ)P(Xβ | Xγ, Xδ)P(Xγ | Xδ)P(Xδ)
= P(Xβ | Xα, Xγ, Xδ)P(Xδ | Xα, Xγ)P(Xγ | Xα)P(Xα)
= · · ·

(3.28)

(3.29)

The DAGs corresponding to Equations (3.28) and (3.29) appear in Fig-
ures 3.7(a) and 3.7(b), respectively.

Assume that G is a DAG that correctly represents the (conditional) de-
pendence and independence properties of P (if any), and that the order in
which we select the head variables of the conditional distributions respect a
)8 with respect to G: pa(vi) ⊆ {v1, . . . , vi−1}
topological ordering (Xv1, . . . , Xvn
for all i = 1, . . . , n (i.e., the parents of each variable are selected before the
variable itself). That is, the tail variables always include the parents.

8 For notational convenience, we assume (without loss of generality) that v1, . . . , vn

is a topological ordering.

α

α

3.7 Chain Rule

59

β

γ

β

γ

δ

(a)

δ

(b)

Fig. 3.7. (a) DAG corresponding to Equation (3.28). (b) DAG corresponding to
Equation (3.29).

It follows easily from the d-separation criterion or the directed Markov
criterion (Section 2.6 on page 31) that for any vertex v of a DAG, G,
v ⊥G nd(v) | pa(v).9 Since G correctly represents the dependence and indepen-
dence properties of P, it follows that Xv ⊥⊥P nd(Xv) | Xpa(v). Therefore, each
| Xpa(vi)). The product in
) can be reduced to P(Xvi
term P(Xvi
Equation 3.27 then simpliﬁes to the chain rule:

| Xv1, . . . , Xvi

P(XV ) =

n(cid:5)

i=1

P(Xvi

| Xpa(vi)).

(3.30)

Example 3.20 (Example 3.19 continued). Assume that the complete set of in-
dependence properties that P satisﬁes comprises {Xβ ⊥⊥P Xγ | Xα, Xα ⊥⊥P
Xδ | {Xβ, Xγ}}. Then the DAG in Figure 3.8 correctly (and completely) repre-

β

α

δ

γ

Fig. 3.8. DAG that correctly (and completely) represents the set of independence
properties {Xβ ⊥⊥P Xγ | Xα, Xα ⊥⊥P Xδ | {Xβ, Xγ}} of a distribution P; see Exam-
ple 3.20.

sents this set of independence properties. From the chain rule we can therefore
write the joint distribution as

9 This result is probably easiest to acknowledge from the directed Markov criterion:
The graph (GAn({v}∪nd(v)∪pa(v)))m obviously excludes all descendants of v forcing
all paths to v to go through pa(v).

60

3 Probabilities

P(XV ) =P (Xα)P(Xβ | Xα)P(Xγ | Xα)P(Xδ | Xβ, Xγ),

where the tail variables are exactly the set of parents for each head variable.

3.8 Summary

Bayesian probability calculus is based on a few very simple and intuitive
axioms that express ground statements of probability about the occurrence
of a single event, the occurrence of mutually exclusive events, and the co-
occurrence of events. Being deﬁned, basically, as exhaustive lists of mutually
exclusive events, (discrete) variables hence provide an excellent concept on
which to base a calculus of distributions of probabilities. For example, we saw
how the axiom on mutually exclusive events implies the rule of total probabil-
ity, which is the basis for computing a (lower-dimensional) marginal probabil-
ity distribution through projection from a (higher-dimensional) distribution.
Together with the straightforward operations of multiplication (combination),
division, and addition, the projection (or marginalization) operation provide
a complete set of operations for probabilistic inference.

As a matter of convenience, the notion of probability potentials was in-
troduced as a generalization of probability distributions in the sense that the
elements of a probability potential do not necessarily sum to 1. Probability
distributions are restored through the operation of normalization, where the
normalization constant expresses the reciprocal value of the probability of the
evidence.

The fundamental trick in making eﬃcient probabilistic inference with a
joint probability distribution over a (possibly large) collection of discrete ran-
dom variables lies in the ability to exploit the (conditional) independence
properties of the distribution. The extent to which these properties allow
a factorization of the distribution into lower-dimensional distributions (i.e.,
distributions deﬁned on subsets of the variables) determines how eﬃciently
inference can be performed. Basically, this gain in eﬃciency is realized through
the exploitation of the distributive law, which implies interleaving of the oper-
ations of combination and marginalization. Allowing a marginalization opera-
tion (dimensionality decrease) to be performed before a combination operation
(dimensionality increase) reduces the total amount of arithmetic operations
needed.

The ability to perform abductive reasoning in probabilistic inference (e.g.,
to compute P(X | Y = y) given P(Y | X) and P(X)) follows from Bayes’ rule,
which in turn follows from the fundamental rule of probability calculus that
is a generalization of the axiom on the co-occurrence of events. An often-
used interpretation of Bayes’ rule states that the posterior probability of an
event given some observation, say P(X = x | Y = y) (i.e., our belief about the
probability of the occurrence of the event X = x after the event Y = y has been
observed), is proportional to the prior probability of the event, P(X = x) (i.e.,

Exercises

61

our belief about the probability of the occurrence of the event X = x before
observing Y = y), times the likelihood of the event given the observation,
deﬁned as L(X = x | Y = y) = P(Y = y | X = x).

We saw how to establish the important connection between the notion of
d-separation (and the equivalent directed, global Markov property) deﬁned
on a DAG, G = (V, E), as discussed in Chapter 2, and the independence prop-
erties of a joint probability distribution, P, deﬁned over variables represented
by V, where the directed edges, E, lead from nodes representing tail variables
to nodes representing head variables of conditional probability distributions
constituting a factorization of P. In fact, with G so deﬁned, there is a one-
to-one correspondence between the statements of d-separation in G and the
(conditional) independence statements of P (i.e., G is a correct and complete
representation of the independence properties of P). This correspondence be-
tween d-separation and (conditional) independence is expressed in the chain
rule on page 59.10

On the basis of the fundamental concepts introduced in Chapters 2 and 3
we shall see in Chapters 4 and 5, respectively, how diﬀerent kinds of proba-
bilistic networks can be deﬁned and how inference in these can be performed.

Exercises

Exercise 3.1. Assume that a non-red ball is removed from the urn in Exam-
ple 3.4 on page 39. What is then the probability of picking a blue ball from
the urn?

Exercise 3.2. Assume that smoking (S = true) causes lung cancer (L = true)
in one out every ten cases and that non-smokers (S = false) get lung cancer
in one out of 500 cases.

(a) Specify the probability table for P(L | S).
(b) Assuming that smoking is the only cause of lung cancer, what is then the
frequency of lung cancer in a population, where one third of the population
are smokers?

Exercise 3.3. Suppose we have the simple model X → Y, and are given P(X),
P(Y | X), and evidence Y = y.

(a) Indicate a minimal-cost procedure for computing P(X | Y = y).
(b) Use the procedure to compute P(S | L = true) in Exercise 3.2.

10 Special cases in which variables are independent only for particular values of
some other variable(s) might exist. Such context-speciﬁc independence properties
obviously cannot be captured by a DAG. Thus, the one-to-one correspondence
should be understood with respect to independence statements on the “level of
variables”.

62

3 Probabilities

Exercise 3.4. Normally, John arrives on time at his oﬃce. If, however, the
roads are icy, there is a chance that he will be late. Let I = icy denote the
event that the roads are icy, and let L = late denote the event that John is late.
Assume that our prior knowledge about road conditions (i.e., without knowing
when John arrives) is given by P(I) = P(I = icy, I = ¬icy) = (0.01, 0.99).
Also, assume our experience tells us that P(L = late | icy) = 0.9 and P(L =
late | ¬icy) = 0.2.

(a) What is the likelihood for icy roads given that John arrives late?
(b) What is the probability of icy roads given that John arrives late?

Exercise 3.5. Assume that the complete list of conditional independence
statements satisﬁed by a probability distribution P(A, B, C, D, E) is given by:

A ⊥⊥ D | {B, C}
A ⊥⊥ D | {B, C, E}
A ⊥⊥ E | C
A ⊥⊥ E | {B, C}
A ⊥⊥ E | {C, D}
A ⊥⊥ E | {B, C, D}

B ⊥⊥ C | A
B ⊥⊥ C | {A, E}
B ⊥⊥ E | A
B ⊥⊥ E | C
B ⊥⊥ E | {A, C}
B ⊥⊥ E | {C, D}
B ⊥⊥ E | {A, C, D}

D ⊥⊥ E | C
D ⊥⊥ E | {B, C}
D ⊥⊥ E | {A, C}
D ⊥⊥ E | {A, B, C}

(a) Draw a DAG fulﬁlling the assumptions.
(b) How many DAGs fulﬁll the assumptions?
(c) Make factorizations of P corresponding to the DAGs.

Exercise 3.6. Let W ⊆ U, and let φ ≡ φU be a potential deﬁned on dom(U),
where U = {A, B, C, D}, W = {A, C}, and all four variables are binary, where
dom(A) = {a1, a2}, etc. Let φU be given by the following table:

c1
d1

0.0957
0.1021
0.0174
0.0624

c1
d2

0.0672
0.0162
0.1297
0.0776

c2
d1

0.0341
0.0634
0.0040
0.0307

c2
d2

0.0513
0.1287
0.1089
0.0107

a1
a1
a2
a2

b1
b2
b1
b2

(a) Compute φW.
(b) Indicate the table for the evidence function ED (deﬁned on dom(D)), rep-

resenting the evidence “D is in state d1”.

(c) Compute φU ∗ ED.
(d) Compute the normalization constant, µ, inP (U | e) =µ ∗ φU ∗ ED.

4

Probabilistic Networks

In this chapter we introduce probabilistic networks for reasoning and decision
making under uncertainty.

Many real-life situations can be modeled as a domain of entities repre-
sented as random variables in a probabilistic network. A probabilistic network
is a clever graphical representation of dependence and independence relations
between random variables. A domain of random variables can, for instance,
form the basis of a decision support system to help decision makers identify
the most beneﬁcial decision in a given situation.

A probabilistic network represents and processes probabilistic knowledge.
The representational components of a probabilistic network are a qualitative
and a quantitative component. The qualitative component encodes a set of
(conditional) dependence and independence statements among a set of ran-
dom variables, informational precedence, and preference relations. The state-
ments of (conditional) dependence and independence, information precedence,
and preference relations are visually encoded using a graphical language. The
quantitative component, on the other hand, speciﬁes the strengths of depen-
dence relations using probability theory and preference relations using utility
theory.

The graphical representation of a probabilistic network describes knowl-
edge of a problem domain in a precise manner. The graphical representation
is intuitive and easy to comprehend, making it an ideal tool for communi-
cation of domain knowledge between experts, users, and systems. For these
reasons, the formalism of probabilistic networks is becoming an increasingly
popular knowledge representation for reasoning and decision making under
uncertainty.

Since a probabilistic network consists of two components, it is customary
to consider its construction as a two-phase process: The construction of the
qualitative component and subsequently the construction of the quantitative
component. The qualitative component deﬁnes the structure of the quanti-
tative component. As the ﬁrst step, the qualitative structure of the model
is constructed using a graphical language. This step consists of identifying

64

4 Probabilistic Networks

variables and relations between variables. As the second step, the parameters
of the quantitative part as deﬁned by the qualitative part are assessed.

In this book, we consider the subclass of probabilistic networks known as
Bayesian networks and inﬂuence diagrams. Bayesian networks and inﬂuence
diagrams are ideal knowledge representations for use in many situations in-
volving reasoning and decision making under uncertainty. These models are
often characterized as normative expert systems as they provide model-based
domain descriptions, where the model is reﬂecting properties of the problem
domain (rather than the domain expert) and probability calculus is used as
the calculus for uncertainty.

A Bayesian network model representation of a problem domain can be
used as the basis for performing inference and analysis about the domain.
Decision options and utilities associated with these options can be incorpo-
rated explicitly into the model, in which case the model becomes an inﬂuence
diagram, capable of computing expected utilities of all decision options given
the information known at the time of decision. Bayesian networks and inﬂu-
ence diagrams are applicable for a large range of domain areas with inherent
uncertainty.

Section 4.1 considers Bayesian networks as probabilistic models for rea-
soning under uncertainty. We consider Bayesian network models containing
discrete variables only and models containing a mixture of continuous and
discrete variables. Section 4.2 considers inﬂuence diagrams as probabilistic
networks for decision making under uncertainty. The inﬂuence diagram is
a Bayesian network augmented with decision variables, informational prece-
dence relations, and preference relations. We consider inﬂuence diagram mod-
els containing discrete variables only and models containing a mixture of
continuous and discrete variables. In Section 4.3 object-oriented probabilistic
networks are considered. An object-oriented probabilistic network is a ﬂexible
framework for building hierarchical knowledge representations using the no-
tions of classes and instances. In Section 4.4 dynamic probabilistic networks
are considered. A dynamic probabilistic network is a method for representing
dynamic systems that are changing over time.

4.1 Reasoning Under Uncertainty

A probabilistic interaction model between a set of random variables may be
represented as a joint probability distribution. Considering the case where
random variables are discrete, it is obvious that the size of the joint probability
distribution will grow exponentially with the number of variables as the joint
distribution must contain one probability for each conﬁguration of the random
variables. Therefore, we need a more compact representation for reasoning
about the state of large and complex systems involving a large number of
variables.

4.1 Reasoning Under Uncertainty

65

To facilitate an eﬃcient representation of a large and complex domain with
many random variables, the framework of Bayesian networks uses a graphi-
cal representation to encode dependence and independence relations among
the random variables. The dependence and independence relations induce a
compact representation of the joint probability distribution. By representing
the dependence and independence relations of a domain explicitly in a graph,
a compact representation of the dependence and independence relations is
obtained.

4.1.1 Discrete Bayesian Networks

A (discrete) Bayesian network, N = (X, G, P), over variables, X, consists of
an acyclic, directed graph G = (V, E) and a set of conditional probability
distributions P. Each node v in G corresponds one-to-one with a discrete
random variable Xv ∈ X with a ﬁnite set of mutually exclusive states. The
directed links E ⊆ V × V of G specify assumptions of conditional dependence
and independence between random variables according to the d-separation
criterion (see Proposition 2.4 on page 32).

There is a conditional probability distribution, P(Xv | Xpa(v)) ∈ P, for each
variable Xv ∈ X. The set of variables represented by the parents, pa(v), of v ∈
V in G = (V, E) are sometimes called the conditioning variables of Xv — the
conditioned variable.

Deﬁnition 4.1. (Jensen 2001) A (discrete) Bayesian network N = (X, G, P)
consists of

• a DAG G = (V, E) with nodes V = {v1, . . . , vn} and directed links E
• a set of discrete random variables, X, represented by the nodes of G
• a set of conditional probability distributions, P, containing one distribu-

tion, P(Xv | Xpa(v)), for each random variable Xv ∈ X.

A Bayesian network encodes a joint probability distribution over a set of
random variables, X, of a problem domain. The set of conditional probability
distributions, P, speciﬁes a multiplicative factorization of the joint probability
distribution over X as represented by the chain rule of Bayesian networks (see
Section 3.7 on page 58):

P(X) =

(cid:5)

v∈V

P(Xv | Xpa(v)).

(4.1)

Even though the joint probability distribution speciﬁed by a Bayesian net-
work is deﬁned in terms of conditional independence, a Bayesian network is
most often constructed using the notion of cause–eﬀect relations, see Sec-
tion 2.4. In practice, cause–eﬀect relations between entities of a problem do-
main can be represented in a Bayesian network using a graph of nodes repre-
senting random variables and links representing cause–eﬀect relations between

66

4 Probabilistic Networks

the entities. Usually, the construction of a Bayesian network (or any proba-
bilistic network for that matter) proceeds according to an iterative procedure
where the set of nodes and their states, and the set of links are updated it-
eratively as the model becomes more and more reﬁned. In Chapters 6 and 7,
we consider in detail the art of building eﬃcient probabilistic network repre-
sentations of a problem domain.

To solve a Bayesian network N = (X, G, P) is to compute all posterior
marginals given a set of evidence ε, i.e., P(X | ε) for all X ∈ X. If the evidence
set is empty, i.e., ε = ∅, then the task is to compute all prior marginals,
i.e., P(X) for all X ∈ X.

Example 4.1 (Apple Jack (Madsen, Nielsen & Jensen 1998)). Consider the
small orchard belonging to Jack Fletcher (let us call him Apple Jack). One
day Apple Jack discovers that his ﬁnest apple tree is losing its leaves. Apple
Jack wants to know why this is happening. He knows that if the tree is dry
(for instance, caused by a drought) there is no mystery as it is very common
for trees to lose their leaves during a drought. On the other hand, the loss of
leaves can be an indication of a disease.

Sick

Dry

Loses

Fig. 4.1. The Apple Jack network.

The qualitative knowledge about the cause–eﬀect relations of this situ-
ation can be modeled by the DAG G shown in Figure 4.1. The graph con-
sists of three nodes: Sick, Dry, andLoses
that represent variables of the
same names. Each variable may be in one of two states: no and yes, i.e.,
dom(Dry) = dom(Loses) = dom(Sick) ={no , yes}. The variable Sick tells us
that the apple tree is sick by being in state yes. Otherwise, it will be in state no.
The variables Dry and Loses tell us whether or not the tree is dry and whether
or not the tree is losing its leaves, respectively.

The graph, G, shown in Figure 4.1 models the cause–eﬀect relations be-
tween variables Sick and Loses as well as between Dry and Loses. This is
represented by the two (causal) links (Sick, Loses) and (Dry, Loses). In this
way Sick and Dry are common causes of the eﬀect Loses.

Let us return to the discussion of causality considered previously in Sec-
tion 2.4. When there is a causal dependence relation going from a variable A
to another variable B, we expect that when A is in a certain state this has an

4.1 Reasoning Under Uncertainty

67

impact on the state of B. One should be careful when modeling causal depen-
dence relations in a Bayesian network. Sometimes it is not quite obvious in
which direction a link should point. In the Apple Jack example, we say that
there is a causal impact from Sick on Loses, because when a tree is sick this
might cause the tree to lose its leaves. Why can we not say that when the tree
loses its leaves it might be sick and turn the link in the other direction? The
reason is that it is the sickness that causes the tree to lose its leaves and not
the lost leaves that causes the sickness.

Figure 4.1 shows the graphical representation of the Bayesian network
model. This is referred to as the qualitative representation. To have a complete
Bayesian network, we need to specify the quantitative representation. Recall
that each variable has two states, no and yes.

The quantitative representation of a Bayesian network is the set of con-
ditional probability distributions, P, deﬁned by the structure of G. Table 4.1
shows the conditional probability distribution of Loses given Sick and Dry,
i.e., P(Loses | Dry, Sick). For variables Sick and Dry we assume that P(S) =
(0.9, 0.1) and P(D) = (0.9, 0.1) (we use D as short for Dry, S as short for Sick,
and L as short for Loses).

L

D

no
no
yes
yes

S

no
yes
no
yes

no

0.98
0.1
0.15
0.05

yes

0.02
0.9
0.85
0.95

Table 4.1. The conditional probability distribution P(L | D, S).

Note that all distributions specify the probability of a variable being in
a speciﬁc state depending on the conﬁguration of its parent variables, but
since Sick and Dry do not have any parent variables, their distributions are
marginal distributions.

The model may be used to compute all prior marginals and the posterior
distribution of each non-evidence variable given evidence in the form of ob-
servations on a subset of the variables in the model. The priors for D and S
equals the speciﬁed marginal distributions, i.e., P(D) =P (S) = (0.9, 0.1),
while the prior distribution for L is computed through combination of the dis-
tributions speciﬁed for the three variables, followed by marginalization, where
variables D and S are marginalized out. This yields P(L) = (0.82, 0.18) (see
Example 3.10 on page 46 for details on combination and marginalization).
Following a similar procedure, the posteriors of D and S given L = yes can be
computed to be P(D | L = yes) = (0.53, 0.47) and P(S | L = yes) = (0.51, 0.49).

68

4 Probabilistic Networks

Thus, according to the model the tree being sick is the most likely cause of
the loss of leaves.

The speciﬁcation of a conditional probability distribution P(Xv | Xpa(v)) can
be a labor-intensive knowledge acquisition task as the number of parameters
grows exponentially with the size of dom(Xfa(v)), where fa(v) =pa (v) ∪ {v}.
Diﬀerent techniques can be used to simplify the knowledge acquisition task,
assumptions can be made, or the parameters can be estimated from data.

The complexity of a Bayesian network is deﬁned in terms of the family fa(v)
with the largest state space size (cid:15)Xfa(v)(cid:15) (cid:1)= |dom(Xfa(v))|. As the state space
size of a family of variables grows exponentially with the size of the family,
we seek to reduce the size of the parent sets to a minimum. Another useful
measure of the complexity of a Bayesian network is the number of cycles and
the length of cycles in its graph.

Deﬁnition 4.2. A Bayesian network N = (X, G, P) is minimal if and only
if, for every variable Xv ∈ X and for every parent Y ∈ Xpa(v), Xv is not
independent of Y given Xpa(v) \ {Y}.

Deﬁnition 4.2 says that the parent set Xpa(v) of Xv should be limited to

the set of variables with a direct impact on Xv.

Example 4.2 (Chest Clinic (Lauritzen & Spiegelhalter 1988)). A physician at
a chest clinic wants to diagnose her patients with respect to three diseases
based on observations of symptoms and possible causes of the diseases. The
ﬁctitious qualitative medical knowledge is the following.

The physician is trying to diagnose a patient who may be suﬀering from
one or more of tuberculosis, lung cancer, or bronchitis. Shortness-of-breath
(dyspnoea) may be due to tuberculosis, lung cancer, bronchitis, none of them,
or more than one of them. A recent visit to Asia increases the chances of
tuberculosis, while smoking is known to be a risk factor for both lung cancer
and bronchitis. The results of a single chest X-ray do not discriminate be-
tween lung cancer and tuberculosis, as neither does the presence or absence
of dyspnoea.

From the description of the situation it is clear that there are three possible
diseases to consider (lung cancer, tuberculosis, and bronchitis). The three
diseases produce three variables Tuberculosis (T ), Cancer (L), and Bronchitis
(B) with states no and yes. These variables are the targets of the reasoning and
may, for this reason, be referred to as hypothesis variables.The diseases may
be manifested in two symptoms (results of the X-ray and shortness-of-breath).
The two symptoms produce two variables X ray (X), and Dyspnoea (D) with
states no and yes. In addition, there are two causes or risk factors (smoking
and a visit to Asia) to consider. The two risk factors produce variables Asia
(A) and Smoker (S) with states no and yes

An acyclic, directed graph, G, encoding the above medical qualitative
knowledge is shown in Figure 4.2, where the variable Tub or cancer (E) is a

4.1 Reasoning Under Uncertainty

69

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 4.2. A graph specifying the independence and dependence relations of the Asia
example.

mediating variable (modeling trick, see Section 6.2.2 on page 150) specifying
whether or not the patient has tuberculosis or lung cancer (or both).

Using the structure of G, we may perform an analysis of dependence and
independence properties between variables in order to ensure that the quali-
tative structure encodes the domain knowledge correctly. This analysis would
be based on an application of the d-separation criterion.

Figure 4.2 only presents the qualitative structure G (and the variables)
of N = (X, G, P). In order to have a fully speciﬁed Bayesian network, it is
necessary to specify the quantitative part, P, too.

The quantitative domain knowledge is speciﬁed in the following set of
(conditional) probability distributions P(A) = (0.99, 0.01), P(S) = (0.5, 0.5),
and the remaining conditional probability distributions, except P(E | L, T ), are
shown in Tables 4.2 and 4.3.

P(L | S)
L = no
L = yes

P(T | A)
T = no
T = yes

S = no

S = yes

0.99
0.01

0.9
0.1

A = no

A = yes

0.99
0.01

0.95
0.05

P(B | S)
B = no
B = yes

P(X | E)
X = no
X = yes

S = no

S = yes

0.7
0.3

0.4
0.6

E = no

E = yes

0.95
0.05

0.02
0.98

Table 4.2. The conditional probability distributions P(L | S), P(B | S), P(T | A),
and P(X | E).

The conditional probability table of the random variable E can be gen-
erated from a mathematical expression. From our domain knowledge of the
diagnosis problem we know that E represents the disjunction of L and T . That
is, E represents whether or not the patient has tuberculosis or lung cancer.

70

4 Probabilistic Networks

From this we can express E as E = T ∨ L. This produces the conditional
probability P(E = yes | L = l, T = t) = 1 whenever l or t is yes.

B = no

B = yes

E = no

E = yes

E = no

E = yes

D = no
D = yes

0.3
0.7
Table 4.3. The conditional probability distribution P(D | B, E).

0.9
0.3

0.1
0.9

0.2
0.8

We will in a later section consider in more detail how to build mathematical
expressions for the generation of conditional probability distributions (see
Section 6.5.3 on page 166).

ε

P(B = yes | ε)

P(L = yes | ε)

P(T = yes | ε)

∅
{S = yes}
{S = yes, D = yes}
{S = yes, D = yes, X = yes}

0.45
0.6
0.88
0.71

0.055
0.1
0.15
0.72

0.01
0.01
0.015
0.08

Table 4.4. Posterior distributions of the disease variables given various evidence
scenarios.

Using the Bayesian network model just developed, we may compute the
posterior probability of the three diseases given various subsets of evidence
on the causes and symptoms as shown in Table 4.4.

4.1.2 Conditional Linear Gaussian Bayesian Networks

Up until now, we have considered Bayesian networks over discrete random
variables only. However, there are many reasons for extending our considera-
tions to include continuous variables. In this section we will consider Bayesian
networks consisting of both continuous and discrete variables. For reasons to
become clear later, we restrict our attention to the case of conditional linear
Gaussian (also known as Normal) distributions and the case of conditional
linear Gaussian Bayesian networks. We refer to a conditional linear Gaussian
Bayesian network as a CLG Bayesian network.

A CLG Bayesian network N = (X, G, P, F) consists of an acyclic, directed
graph G = (V, E), a set of conditional probability distributions P, and a set
of density functions F. There will be one conditional probability distribution
for each discrete random variable X of X and one density function for each
continuous random variable Y of X.

4.1 Reasoning Under Uncertainty

71

A CLG Bayesian network speciﬁes a distribution over a mixture of discrete
and continuous variables (Lauritzen 1992b, Lauritzen & Jensen 2001). The
variables, X, are partitioned into the set of continuous variables, XΓ , and
the set of discrete variables, X∆. Each node of G represents either a discrete
random variable with a ﬁnite set of mutually exclusive and exhaustive states or
a continuous random variable with a conditional linear Gaussian distribution
conditional on the conﬁguration of its discrete parent variables. This implies
an important constraint on the structure of G, namely that a discrete random
variable Xv may only have discrete parents, i.e., Xpa(v) ⊆ X∆ for any Xv ∈ X∆.
Any Gaussian distribution function can be speciﬁed by its mean and vari-
ance parameter. As mentioned above, we consider the case where a continuous
random variable can have a single Gaussian distribution function for each con-
ﬁguration of its discrete parent variables. If a continuous variable has one or
more continuous variables as parents, the mean may depend linearly on the
state of the continuous parent variables. Continuous parent variables of dis-
crete variables are disallowed.

A random variable, X, has a continuous distribution if there exists a non-

negative function p, deﬁned on the real line, such that for any interval J:

(cid:14)

P(X ∈ J) =

p(x)dx,

J

where the function p is the probability density function of X (DeGroot 1986).
The probability density function of a Gaussian (or Normal ) distributed vari-
able, X, with a mean value, µ, and a positive variance, σ2, is (i.e., X ∼ N(µ, σ2)
or L(X) = N(µ, σ2))

p(x; µ, σ2) =N(µ, σ 2) =

1(cid:15)

(2πσ2)

(cid:16)

exp

−

(cid:17)

,

(x − µ)2
2σ2

where x ∈ R.1

A continuous random variable, X, has a conditional linear Gaussian distri-
bution (or CLG distribution), conditional on the conﬁguration of the parent
variables (Z ⊆ XΓ , I ⊆ X∆) if

L(X | Z = z, I = i) =N( A(i) + B(i)T z, C(i)),

(4.2)

where A is a table of mean values (one value for each conﬁguration i of
the discrete parent variables I), B is a table of regression coeﬃcient vectors
(one vector for each conﬁguration i of I with one regression coeﬃcient for
each continuous parent variable), and C is a table of variances (one for each
conﬁguration i of I). Notice that the mean value A(i) +B (i)T z of X depends
linearly on the values of the continuous parent variables Z, while the variance
is independent of Z. We allow for the situation where the variance is zero such
that deterministic relations between continuous variables can be represented.

1 L(X) should be read as “the law of X”.

72

4 Probabilistic Networks

The quantitative part of a CLG Bayesian network consists of a conditional
probability distribution for each X ∈ X∆ and a conditional Gaussian distribu-
tion for each X ∈ XΓ . For each X ∈ XΓ with discrete parents, I, and continuous
parents, Z, we need to specify a one-dimensional Gaussian probability distri-
bution for each conﬁguration i of I as shown in Equation 4.2.

Deﬁnition 4.3. A CLG Bayesian network N = (X, G, P, F) consists of

• a DAG G = (V, E) with nodes V and directed links E
• a set of random variables, X, represented by the nodes of G
• a set of conditional probability distributions, P, containing one distribu-

tion, P(Xv | Xpa(v)), for each discrete random variable Xv

• a set of conditional-linear Gaussian probability density functions, F, con-
taining one density function, p(Yv | Xpa(v)), for each continuous random
variable Yv.

The joint distribution over all the variables in a CLG Bayesian network
has the form P(X∆ = i) ∗ N|XΓ |(µ(i), σ2(i)), whereN k(µ, σ2) denotes a k-
dimensional Gaussian distribution. The chain rule of CLG Bayesian networks
is

(cid:5)

(cid:5)

P(X∆ = i) ∗ N|XΓ |(µ(i), σ2(i)) =

P(iv | ipa(v)) ∗

p(yw | Xpa(w)),

v∈V∆

w∈VΓ

for each conﬁguration i of X∆.

Recall that in the graphical representation of a CLG Bayesian network,

continuous variables are represented by double ovals.

Example 4.3. Figure 4.3 shows an example of the qualitative speciﬁcation of
a CLG Bayesian network, N, with three variables, i.e., X = {X1, X2, X3},
where X∆ = {X1} and XΓ = {X2, X3}. Hence, N consists of a continuous random
variable X3 having one discrete random variable X1 (binary with states false
and true) and one continuous random variable X2 as parents.

X1

X2

X3

Fig. 4.3. CLG Bayesian network with X1 discrete, and X2 and X3 continuous.

To complete the model, we need to specify the relevant conditional proba-
bility distribution and density functions. The quantitative speciﬁcation could,
for instance, consist of the following conditional linear Gaussian distribution
functions for X3

4.1 Reasoning Under Uncertainty

73

L(X3 | false, x2) =N(−5 + (−2 ∗ x2), 1.1)
L(X3 | true, x2) =N(

5 + (2 ∗ x2), 1.2).

The quantitative speciﬁcation is completed by letting X2 have a standard

Normal distribution (i.e., X2 ∼ N(0, 1)) and P(X1) = (0.75, 0.25).

The qualitative and quantitative speciﬁcations complete the speciﬁcation

of N. The joint distribution induced by N is

(cid:7)(cid:7)

P(X1 = false) ∗ p(X2, X3) =0.75 ∗ N

(cid:8)

(cid:7)

(cid:8)(cid:8)

0
−5
(cid:8)

0
5

,

(cid:7)

,

1
10

10
5.1

(cid:8)(cid:8)

10
5.2

1
10

,

.

(cid:7)(cid:7)

P(X1 = true) ∗ p(X2, X3) =0.25 ∗ N

Determining the joint distribution induced by N requires a series of non-
trivial computations. We refer the reader to the next chapter for a brief treat-
ment of inference in CLG Bayesian networks. A detailed treatment of these
computations is beyond the scope of this book.

Example 4.4 (Adapted from Lauritzen (1992a)). Consider a banker who is
monitoring her clients in order to limit future loss from each client account.
The task of the banker is to identify clients who may have problems repaying
their loans by predicting potential future loss originating from each individual
customer based on demographic information and credit limit.

Figure 4.4 shows a simple CLG Bayesian network model for this scenario.
Loss is a linear function of variables Income (I) given variable WillToPay
(W). CreditLimit (C) is a linear function of Income given Housing (H) and
MaritalStatus (M). In addition MaritalStatus is also a causal factor of Housing
and WillToPay, while Profession and Employment are causal factors of Income.

Profession

Employment

CreditLimit

Income

Housing

MaritalStatus

WillToPay

Loss

Fig. 4.4. CLG Bayesian network for credit account management.

With the model, the banker may enter observations on each client and
compute an expected loss for that client. The model may be extended to

74

4 Probabilistic Networks

include various risk indicators and controls in order to facilitate a scenario-
based analysis on each client.

The reason for restricting our attention to the case of conditional linear
Gaussian distributions is that only for this case is exact probabilistic inference
feasible by local computations. For most other cases it is necessary to resort
to approximate reasoning.

4.2 Decision Making Under Uncertainty

The framework of inﬂuence diagrams (Howard & Matheson 1981) is an eﬀec-
tive modeling framework for representation and analysis of (Bayesian) decision
making under uncertainty. Inﬂuence diagrams provide a natural representa-
tion for capturing the semantics of decision making with a minimum of clutter
and confusion for the decision maker (Shachter & Peot 1992). Solving a deci-
sion problem amounts to (i) determining an optimal strategy that maximizes
the expected utility for the decision maker and (ii) computing the maximal
expected utility of adhering to this strategy.

An inﬂuence diagram is a type of causal model that diﬀers from a Bayesian
network. A Bayesian network is a probabilistic network for reasoning under
uncertainty, whereas an inﬂuence diagram is a probabilistic network for rea-
soning about decision making under uncertainty. An inﬂuence diagram is a
graphical representation of a decision problem involving a sequence of inter-
leaved decisions and observations. Similar to Bayesian networks, an inﬂuence
diagram is a compact and intuitive probabilistic knowledge representation (a
probabilistic network). It consists of a graphical representation describing de-
pendence relations between entities of a problem domain, points in time where
decisions are to be made, and a precedence ordering specifying the order on
decisions and observations. It also consists of a quantiﬁcation of the strengths
of the dependence relations and the preferences of the decision maker. As such,
an inﬂuence diagram can be considered as a Bayesian network augmented with
decision variables, utility functions specifying the preferences of the decision
maker, and a precedence ordering.

As decision makers we are interested in making the best possible decisions
given our model of the problem domain. Therefore, we associate utilities with
state conﬁgurations of the network. These utilities are represented by utility
functions (also known as value functions). Each utility function associates a
utility value with each conﬁguration of its domain variables. The objective of
decision analysis is to identify the decision options that produce the highest
expected utility.

By making decisions, we inﬂuence the probabilities of the conﬁgurations of
the network. To identify the decision option with the highest expected utility,
we compute the expected utility of each decision alternative. If A is a decision
variable with options a1, . . . , am, H is a hypothesis with states h1, . . . , hn,

4.2 Decision Making Under Uncertainty

75

and ε is a set of observations in the form of evidence, then we can compute
the utility of each outcome of the hypothesis and the expected utility of each
action. The utility of an outcome (ai, hj) is U(ai, hj) where U(·) is our utility
function. The expected utility of performing action ai is

EU(ai) =

(cid:10)

j

U(ai, hj)P(hj | ε),

where P(·) represents our belief in H given ε. The utility function U(·) encodes
the preferences of the decision maker on a numerical scale.

We shall choose the alternative with the highest expected utility; this is
known as the maximum expected utility principle. Choosing the action, which
maximizes the expected utility amounts to selecting an option a∗ such that

a∗ = arg max
a∈A

EU(a).

There is an important diﬀerence between observations and actions. An
observation of an event is passive in the sense that we assume that an ob-
servation does not eﬀect the state of the world whereas the decision on an
action is active in the sense that an action enforces a certain event. The event
enforced by a decision may or may not be included in the model depending on
whether or not the event is relevant for the reasoning. If the event enforced by
an action A is represented in our model, then A is referred to as an intervening
action, otherwise it is referred to as a non-intervening action.

4.2.1 Discrete Inﬂuence Diagrams

A (discrete) inﬂuence diagram N = (X, G, P, U) is a four-tuple consisting of a
set, X, of discrete random variables and discrete decision variables, an acyclic,
directed graph G, a set of conditional probability distributions P, and a set
of utility functions U. The acyclic, directed graph, G = (V, E), contains nodes
representing random variables, decision variables, and utility functions (also
known as value or utility nodes).

Each decision variable, D, represents a speciﬁc point in time under the
model of the problem domain where the decision maker has to make a de-
cision. The decision options or alternatives are the states (d1, . . . , dn) of D
where n = (cid:15)D(cid:15). The decision options are mutually exclusive and exhaus-
tive. The usefulness of each decision option is measured by the local utility
functions associated with D or one of its descendants in G. Each local utility
function u(Xpa(v)) ∈ U, where v ∈ VU is a utility node, represents an additive
contribution to the total utility function u(X) in N. Thus, the total utility
function is the sum of all the utility functions in the inﬂuence diagram, i.e.,
u(X) =

v∈VU u(Xpa(v)).

(cid:6)

Deﬁnition 4.4. A (discrete) inﬂuence diagram N = (X, G, P, U) consists of

76

4 Probabilistic Networks

• a DAG G = (V, E) with nodes, V, and directed links, E, encoding depen-
dence relations and information precedence including a total order on de-
cisions

• a set of discrete random variables, XC, and discrete decision variables, XD,

such that X = XC ∪ XD represented by nodes of G

• a set of conditional probability distributions, P, containing one distribu-

tion, P(Xv | Xpa(v)), for each discrete random variable Xv

• a set of utility functions, U, containing one utility function, u(Xpa(v)), for

each node v in the subset VU ⊂ V of utility nodes.

An inﬂuence diagram supports the representation and solution of sequen-
tial decision problems with multiple local utility functions under the no-
forgetting assumption (Howard & Matheson 1981) (i.e., perfect recall is as-
sumed of all observations and decisions made in the past).

An inﬂuence diagram, N = (X, G, P, U), should be constructed such that
one can determine exactly which variables are known prior to making each
decision. If the state of a variable Xv ∈ XC will be known at the time of
making a decision Dw ∈ XD, this will (probably) have an impact on the
choice of alternative at D. An observation on Xv made prior to decision Dw
is represented in N by making v a parent of w in G. If v is a parent of w
in G = (V, E) (i.e., (v, w) ∈ E, implying Xv ∈ Xpa(w)), then it is assumed
that Xv is observed prior to making the decision represented by Dw. The
link (v, w) is then referred to as an informational link.

In an inﬂuence diagram there must also be a total order on the decision
variables XD = {D1, . . . , Dn} ⊆ X. That is, there can be only one sequence in
which the decisions are made. We add informational links to specify a total
order (D1, . . . , Dn) on XD = {D1, . . . , Dn}. There need only be a directed
path from one decision variable to the next one in the decision sequence in
order to enforce a total order on the decisions.

In short, a link, (w, v), into a node representing a random variable, Xv,
denotes a possible probabilistic dependence relation of Xv on Yw while a link
from a node representing a variable, X, into a node representing a decision
variable, D, denotes that the state of X is known when decision D is to be
made. A link, (w, v), into a node representing a local utility function, u,
denotes functional dependence of u on Xv ∈ X.
The chain rule of inﬂuence diagrams is

EU(X) =

(cid:5)

Xv∈XC

P(Xv | Xpa(v))

(cid:10)

w∈VU

u(Xpa(w)).

An inﬂuence diagram is a compact representation of a joint expected utility
function.

In the graphical representation of an inﬂuence diagram, utility functions
are represented by rhombuses (diamond-shaped nodes), whereas decision vari-
ables are represented as rectangles.

4.2 Decision Making Under Uncertainty

77

Example 4.5 (Oil Wildcatter (Raiﬀa 1968)). Consider the ﬁctitious example
of an oil wildcatter about to decide whether or not to drill for oil at a speciﬁc
site. The situation of the oil wildcatter is the following.

An oil wildcatter must decide either to drill or not to drill. He is uncertain
whether the hole will be dry, wet, or soaking. The wildcatter could take seismic
soundings that will help determine the geological structure of the site. The
soundings will give a closed reﬂection pattern (indication of much oil), an
open pattern (indication of some oil), or a diﬀuse pattern (almost no hope of
oil).

The qualitative domain knowledge extracted from the above description
can be formulated as the DAG shown in Figure 4.5. The state spaces of the
variables are as follows dom(Drill) = {no, yes}, dom(Oil) ={dry , wet, soaking},
dom(Seismic) ={closed , open, diﬀuse}, and dom(Test) = {no, yes}.

Test

Oil

U2

U1

Seismic

Drill

Fig. 4.5. The Oil Wildcatter network.

Figure 4.5 shows how the qualitative knowledge of the example can be
compactly speciﬁed in the structure of an inﬂuence diagram N = (X, G, P, U).
The quantitative probabilistic knowledge as deﬁned by the structure of G
consists of P(Oil) and P(Seismic | Oil, Test), while the quantitative utility knowl-
edge consists of U1(Test) and U2(Drill, Oil).

The cost of testing is 10k whereas the cost of drilling is 70k. The utility
of drilling is 0k, 120k, and 270k for a dry, wet, and soaking hole, respectively.
Hence, U1(Test) = (0, −10) and U2(Drill = yes, Oil) = (−70, 50, 200). The test
result Seismic depends on the amount of oil Oil as speciﬁed in Table 4.5. The
prior belief of the oil wildcatter on the amount of oil at the site is P(Oil) =
(0.5, 0.3, 0.2).

Oil

diﬀuse

Seismic
open

closed

dry
wet
soaking

0.6
0.3
0.1

0.3
0.4
0.4

0.1
0.3
0.5

Table 4.5. The conditional probability distribution P(Seismic | Oil, Test = yes).

78

4 Probabilistic Networks

This produces a completely speciﬁed inﬂuence diagram representation of
the oil wildcatter decision problem. The decision strategy of the oil wildcatter
will be considered in Example 4.7 on the facing page.

As a consequence of the total order on decisions and the set of informa-
tional links, the set of discrete random variables and decision variables are
subjected to a partial ordering. The random variables are partitioned into
disjoint information sets I0, . . . , In (i.e., Ii ∩ Ij = ∅ for i (cid:7)= j) relative to the
decision variables specifying the precedence order. The information set Ii is
the set of variables observed after decision Di and before decision Di+1. The
partition induces a partial ordering, ≺, on the variables X. The set of variables
observed between decisions Di and Di+1 precedes Di+1 and succeeds Di in
the ordering

I0 ≺ D1 ≺ I1 ≺ · · · ≺ Dn ≺ In,

where I0 is the set of discrete random variables observed before the ﬁrst
decision, Ii is the set of discrete random variables observed after making
decision Di and before making decision Di+1, for all i = 1, ..., n − 1, and In
is the set of discrete random variables never observed or observed after the
last decision Dn has been made. If the inﬂuence diagram is not constructed
or used according to this constraint, the computed expected utilities will (of
course) not be correct.

Example 4.6. The total order on decisions and the informational links of Ex-
ample 4.5 on the previous page induce the following partial order:

{} ≺ Test ≺ {Seismic} ≺ Drill ≺ {Oil}.

This partial order turns out to be a total order. In general, this is not the case.
The total order speciﬁes the ﬂow of information in the decision problem. No
observations are made prior to the decision on whether or not to Test. After
testing and before deciding on whether or not to Drill, the oil wildcatter will
make an observation on Seismic, i.e. the test result is available before the Drill
decision. After drilling Oil is observed.

To solve an inﬂuence diagram N = (X, G, P, U) with decision variables, XD,
is to identify an optimal strategy, ^∆, over XD maximizing the expected utility
for the decision maker and to compute the maximum expected utility MEU( ^∆)
of ^∆. A strategy, ∆, is an ordered set of decision policies ∆ = (δ1, . . . , δn)
including one decision policy for each decision D ∈ XD. An optimal strat-
egy ^∆ = (^δ1, . . . , ^δn), maximizes the expected utility over all possible strate-
gies, i.e., it satisﬁes

EU( ^∆) ≥ EU(∆),

for all strategies ∆.

The decision history of Di, denoted H(Di), is the set of previous decisions

and their parent variables

4.2 Decision Making Under Uncertainty

79

H(Di) =

i−1(cid:5)

({Dj} ∪ Xpa(vj)) ={D 1, . . . , Di−1} ∪

j=1

i−2(cid:5)

j=0

Ij,

where vj denotes the node that represents Dj.

The decision past of Dj, denoted I(Di), is the set of its parent variables

and the decision history H(Di)

I(Di) = Xpa(vi) ∪ H(Di)

= Xpa(vi) ∪

i−1(cid:5)

({Dj} ∪ Xpa(vj))

j=1

= {D1, . . . , Di−1} ∪

i−1(cid:5)

j=1

Ij.

Hence, I(Di) \ H(Di) =I i−1 are the variables observed between Di−1

and Di.

The decision future of Di, denoted F(Di) is the set of its descendant

variables

F(Di) = Ii ∪

⎛

⎝

n(cid:5)

j=i+1

⎞

⎠

({Dj} ∪ Xpa(vj))

= {Di+1, . . . , Dn} ∪

n(cid:5)

j=i

Ij.

A policy δi is a mapping from the information set I(Di) of Di to the state
space dom(Di) of Di such that δi : I(Di) → dom(Di). A policy for decision D
speciﬁes the optimal action for the decision maker for all possible observations
made prior to making decision D.

It is only necessary to consider δi as a function from relevant observations
on I(Di) to dom(Di), i.e., observations with an unblocked path to a utility
descendant of Di. Relevance of an observation with respect to a decision is
deﬁned in Section 4.2.3 on page 89.

Example 4.7. After solving the inﬂuence diagram, we obtain an optimal strat-
egy ^∆ = {^δTest, ^δDrill}. Hence, the optimal strategy ^∆ (we show how to identify
the optimal strategy for this example in Example 5.11 on page 126) consists
of a policy ^δTest for Test and a policy ^δDrill for Drill given Test and Seismic

80

4 Probabilistic Networks

^δTest = yes
⎧

^δDrill(Seismic, Test) =

⎪⎪⎪⎪⎪⎪⎪⎪⎨
⎪⎪⎪⎪⎪⎪⎪⎪⎩

yes Seismic = closed, Test = no
yes Seismic = open, Test = no
yes Seismic = diﬀuse, Test = no
yes Seismic = closed, Test = yes
yes Seismic = open, Test = yes
no

Seismic = diﬀuse, Test = yes

The policy for Test says that we should always test, while the policy for Drill
says that we should drill except when the test produces a diﬀuse pattern
indicating almost no hope of oil.

An intervening decision D of an inﬂuence diagram is a decision that may
impact the value of another variable X represented in the model. In order
for D to potentially impact the value of X, X must be a descendant of D in G.
This can be realized by considering the d-separation criterion (consider the
information blocking properties of the converging connection) and the set of
evidence available when making the decision D. Consider, for instance, the
inﬂuence diagram shown in Figure 4.5. The decision Test is an intervening
decision as it impacts the value of Seismic. It cannot, however, impact the
value of Oil as Oil is a non-descendant of Test and we have nodown-stream
evidence when making the decision on Test. Since decision D may only have a
potential impact on its descendants, the usefulness of D can only be measured
by the utility descendants of D.

A total ordering on the decision variables is usually assumed. This assump-
tion can, however, be relaxed. Nielsen & Jensen (1999) describe when decision
problems with only a partial ordering on the decision variables are well-deﬁned.
In addition, the limited memory inﬂuence diagram (Lauritzen & Nilsson 2001)
and the unconstrained inﬂuence diagram (Vomlelov´a & Jensen 2002) support
the use of unordered decision variables.

Example 4.8 (Apple Jack). We consider once again the problems of Apple Jack
from Example 4.1 on page 66. A Bayesian network for reasoning about the
causes of the apple tree losing its leaves was shown in Figure 4.1 on page 66.
We continue the example by assuming that Apple Jack wants to decide
whether or not to invest resources in giving the tree some treatment against
a possible disease. Since this involves a decision through time, we have to
extend the Bayesian network to capture the impact of the treatment on the
development of the disease. We ﬁrst add three variables similar to those al-
ready in the network. The new variables Sick∗, Dry∗, and Loses∗ correspond
to the original variables, except that they represent the situation at the time
of harvest. These variables have been added in Figure 4.6 on the facing page.
The additional variables have the same states as the original variables:
Sick∗, Dry∗, and Loses∗ all have states no and yes. In the extended model, we

4.2 Decision Making Under Uncertainty

81

Dry

Sick

Loses

Dry∗

Sick∗

Loses∗

Fig. 4.6. We model the system at two diﬀerent points in time (before and after a
decision) by replicating the structure.

expect a causal inﬂuence from the original Sick variable on the Sick∗ variable
and from the original Dry variable on the Dry∗ variable. The reason is the
following. If, for example, we expect the tree to be sick now, then this is also
very likely to be the case in the future and especially at the time of harvest.
Of course, the strength of the inﬂuence depends on how far out in the future
we look. Perhaps one could also have a causal inﬂuence from Loses on Loses∗,
but we have chosen not to model such a possible dependence relation in this
model.

Dry

Sick

Loses

Treat

Dry∗

Sick∗

Loses∗

Fig. 4.7. Addition of a decision variable for treatment to the Bayesian network in
Figure 4.6.

Apple Jack may try to heal the tree with a treatment to get rid of the
possible disease. If he expects that the loss of leaves is caused by drought, he
might save his money and just wait for rain. The action of giving the tree a
treatment is now added as a decision variable to the Bayesian network, which
will then no longer be a Bayesian network. Instead it becomes the inﬂuence
diagram shown in Figure 4.7.

The treat decision variable has the states no and yes. There is a causal
link (Treat, Sick∗) from the decision Treat to Sick∗ as we expect the treat-
ment to have a causal impact on the future health of the tree. There is an

82

4 Probabilistic Networks

informational link from Loses to Treat as we expect Apple Jack to observe
whether or not the apple tree is losing its leaves prior to making the decision
on treatment.

We need to specify the utility functions enabling us to compute the ex-
pected utility of the decision options. This is done by adding utility functions
to the inﬂuence diagram. Each utility function will represent a term of an
additively decomposing utility function and each term will contribute to the
total utility. The utility functions are shown in Figure 4.8.

Dry

Sick

Dry∗

Loses

Loses∗

Sick∗

H

Treat

C

Fig. 4.8. A complete qualitative representation of the inﬂuence diagram used for
decision making in Apple Jack’s orchard.

The utility function C speciﬁes the cost of the treatment while utility
function H speciﬁes the gain of the harvest. The latter depends on the state
of Sick∗, indicating that the production of apples depends on the health of
the tree.

Sick∗

Treat

Sick

no

no
no
yes
yes

no
yes
no
yes

0.98
0.01
0.99
0.8

yes

0.02
0.99
0.01
0.2

Table 4.6. The conditional probability distribution P(Sick∗ | Treat, Sick).

Figure 4.8 shows the complete qualitative representation of the inﬂuence
diagram N = (X, G, P, U). To complete the quantitative representation as well,
we need to specify the conditional probability distributions, P, and utility
functions, U, of N. Recall that a decision variable does not have any distribu-
tion. The appropriate probability distributions are speciﬁed in Tables 4.6–4.8.

4.2 Decision Making Under Uncertainty

83

Dry∗

Dry

no

no
yes

0.95
0.4

yes

0.05
0.6

Table 4.7. The conditional probability distribution P(Dry∗ | Dry).

If we have a healthy tree (Sick∗ is in state no), then Apple Jack will get
an income of e 200, while if the tree is sick (Sick∗ is in state yes) his income is
only e 30, i.e., H(Sick∗) = (200, 30). To treat the tree, he has to spend e 80,
i.e., C(Treat) = (0, −80).

Dry

Treat

Loses

Sick

Sick∗

C

H

Fig. 4.9. A simpliﬁed inﬂuence diagram for the decision problem of Apple Jack.

Since Dry∗ and Loses∗ are not relevant for the decision on whether or not
to treat and since we do not care about their distribution, we remove them
from our model producing the ﬁnal model shown in Figure 4.9. Variables Dry∗
and Loses∗ are in fact barren variables, see Section 3.3.4 on page 49. In an
inﬂuence diagram a variable is a barren variable when none of its descendants
are utility nodes and none of its descendants are ever observed.

Dry∗

Sick∗

no
no
yes
yes

no
yes
no
yes

Loses∗

no

0.98
0.1
0.15
0.05

yes

0.02
0.9
0.85
0.95

Table 4.8. The conditional probability distribution P(Loses∗ | Dry∗, Sick∗).

The purpose of our inﬂuence diagram is to be able to determine the optimal
strategy for Apple Jack. After solving N, we obtain the following policy (δTreat :
Loses → dom(Treat)) for Treat

84

4 Probabilistic Networks

δTreat(Loses) =

(cid:16)

Loses = no
no
yes Loses = yes

Hence, we should only treat the tree when it loses its leaves. In Section 5.2,
we describe how to solve an inﬂuence diagram.

Notice that since a policy is a mapping from all possible observations to
decision options, it is suﬃcient to solve an inﬂuence diagram once. Hence, the
computed strategy can be used by the decision maker each time she or he is
faced with the decision problem.

Implications of Perfect Recall

As mentioned above, when using inﬂuence diagrams to represent decision
problems we assume perfect recall. This assumption states that at the time of
any decision, the decision maker remembers all past decisions and all previ-
ously known information (as enforced by the informational links). This implies
that a decision variable and all of its parent variables are informational parents
of all subsequent decision variables. Due to this assumption it is not necessary
to include no-forgetting links in the DAG of the inﬂuence diagram as they —
if missing — will implicitly be assumed present.

A

B

D1

U1

C

D

G

D2

E

F

D4

I

H

D3

L

J

K

U3

U4

U2

4.10. An inﬂuence diagram representing

Fig.
sions D1, D2, D3, D4.

the

sequence

of deci-

4.2 Decision Making Under Uncertainty

85

Example 4.9. (Jensen, Jensen & Dittmer 1994) Let N be the inﬂuence dia-
gram in Figure 4.10 on the preceding page. This inﬂuence diagram represents
a decision problem involving four decisions D1, D2, D3, and D4 in that order.
From the structure of N, the following partial ordering on the random and

decision variables can be read

{B} ≺ D1 ≺ {E, F} ≺ D2 ≺ {} ≺ D3 ≺ {G} ≺ D4 ≺ {A, C, D, H, I, J, K, L}.

This partial ordering speciﬁes the ﬂow of information in the decision prob-
lem represented by N. Thus, the initial (relevant) information available to the
decision maker is an observation of B. After making a decision on D1, the
decision maker observes E and F. After the observations of E and F a decision
on D2 is made, and so on.

Notice that no-forgetting links have been left out, e.g., there are no links
from B to D2, D3, orD 4. These links are included in Figure 4.11. The diﬀer-
ence in complexity of reading the graph is apparent.

A

B

D1

U1

C

D

G

D2

E

F

D4

I

H

D3

L

J

K

U3

U4

U2

Fig. 4.11. The inﬂuence diagram of Figure 4.10 with no-forgetting links.

As this example shows, a rather informative analysis can be performed by

reading only the structure of the graph of N.

4.2.2 Conditional LQG Inﬂuence Diagrams

Conditional linear-quadratic Gaussian inﬂuence diagrams combine conditional
linear Gaussian Bayesian networks, discrete inﬂuence diagrams, and quadratic

86

4 Probabilistic Networks

utility functions into a single framework supporting decision making under
uncertainty with both continuous and discrete variables (Madsen & Jensen
2005).

Deﬁnition 4.5. A CLQG inﬂuence diagram N = (X, G, P, F, U) consists of

• a DAG G = (V, E) with nodes, V, and directed links, E, encoding depen-
dence relations and information precedence including a total order on de-
cisions

• a set of random variables, XC, and decision variables, XD, such that X =

XC ∪ XD represented by nodes of G

• a set of conditional probability distributions, P, containing one distribu-

tion, P(Xv | Xpa(v)), for each discrete random variable Xv

• a set of conditional linear Gaussian probability density functions, F, con-
taining one density function, p(Yw | Xpa(w)), for each continuous random
variable Yw

• a set of linear-quadratic utility functions, U, containing one utility func-
tion, u(Xpa(v)), for each node v in the subset VU ⊂ V of utility nodes.

We refer to a conditional linear-quadratic Gaussian inﬂuence diagram as

a CLQG inﬂuence diagram. The chain rule of CLQG inﬂuence diagrams is

EU(X∆ = i, XΓ ) =P

=

(X∆ = i) ∗ N|XΓ |(µ(i), σ2(i)) ∗
(cid:5)

(cid:5)

P(iv | ipa(v)) ∗

p(yw | Xpa(w)) ∗

(cid:10)

z∈VU

u(Xpa(z))

w∈VΓ

v∈V∆
(cid:10)

z∈VU

u(Xpa(z)),

for each conﬁguration i of X∆.

Recall that in the graphical representation of a CLQG inﬂuence diagram,
continuous utility functions are represented by double rhombuses and contin-
uous decision variables as double rectangles.

A CLQG inﬂuence diagram is a compact representation of a joint expected
utility function over continuous and discrete variables, where continuous vari-
ables are assumed to follow a linear Gaussian distribution conditional on a
subset of discrete variables while utility functions are assumed to be linear-
quadratic in the continuous variables (and constant in the discrete). This
may seem a severe assumption which could be limiting to the usefulness of
the CLQG inﬂuence diagram. The assumption seems to indicate that all local
utility functions speciﬁed in a CLQG inﬂuence diagram should be linear-
quadratic in the continuous variables. This is not the case, however, as the
following examples show. We will consider the assumption in more detail in
Section 5.2 on solving decision models.

4.2 Decision Making Under Uncertainty

87

Play

Guess

Sex

Height

U

Fig. 4.12. A CLQG inﬂuence diagram for a simple guessing game.

Example 4.10 (Guessing Game (Madsen & Jensen 2005)). Figure 4.12 illus-
trates a CLQG inﬂuence diagram, N, representation of a simple guessing game
with two decisions.

The ﬁrst decision, represented by the discrete decision variable Play with
states reward and play, is to either accept an immediate reward or to play
a game where you will receive a payoﬀ determined by how good you are
at guessing the height of a person, represented by the continuous random
variable Height, based on knowledge about the sex of the person, represented
by the discrete random variable Sex with states female and male. The second
decision, represented by the real-valued decision variable Guess, is your guess
on the height of the person given knowledge about the sex of the person.

The payoﬀ is a constant (higher than the reward) minus the distance of
your guess from the true height of the person measured as height minus guess
squared.

To quantify N, we need to specify a prior probability distribution for Sex,
a conditional Gaussian distribution for Height and a utility function over Play,
Guess, andHeight . Assume the prior distribution on Sex is P(Sex) = (0.5, 0.5)
whereas the distribution for Height is

L(Height | female) = N(170, 400)
L(Height | male) = N(180, 100).

We assume the average height of a female to be 170 cm with a standard
deviation of 20 cm and average height of a male to be 180 cm with a standard
deviation of 10 cm. The utility function over Play, Guess, Height is

u(play, d2, h) = 150 − (h − d2)2

u(reward, d2, h) = 100.

We assume the immediate reward is 100. After solving N, we obtain an optimal
strategy ∆ = {δPlay, δGuess}

δPlay = play

δGuess(play, female) =170
δGuess(play, male) =180.

88

4 Probabilistic Networks

The optimal strategy is to guess that the height of a female person is 170 cm
and the height of a male person is 180 cm.

In this example the policy for Guess reduces to a constant for each conﬁg-
uration of its parent variables. In the general case, the policy for a continuous
decision variable is a multi-linear function in its continuous parent variables
given the discrete parent variables.

As another example of a CLQG inﬂuence diagram consider a revised exten-
sion of the Oil Wildcatter problem of Raiﬀa (1968) (Example 4.5 on page 77).
The revised Oil Wildcatter problem, which is further revised here, is due
to Cobb & Shenoy (2004).

Example 4.11 (Oil Wildcatter (Madsen & Jensen 2005)). The network of the
revised version of the Oil Wildcatter problem is shown in Figure 4.13. First,
the decision maker makes a decision on whether or not to perform a test Test
of the geological structure of the site under consideration. When performed,
this test will produce a test result, Seismic depending on the amount of oil Oil.
Next, a decision Drill on whether or not to drill is made. There is a cost Cost
associated with drilling, while the revenue is a function of oil volume Volume
and oil price Price.

U2

Cost

Test

Seismic

D

U3

U1

Oil

Volume

Price

Fig. 4.13. A revised version of the Oil Wildcatter problem.

We assume the continuous random variables (i.e., cost of drilling, oil price,
and oil volume) to follow (conditional) Gaussian distributions. The utility
function can be stated in thousands of euros as U1(Test = yes) = −10,
U2(Cost = c, Drill = yes) = −c, U3(Volume = v, Price = p, Drill = yes) = v ∗ p,
and zero for the no drill and no test situations.

If the hole is dry, then no oil

is extracted: L(Volume | Oil = dry) =
N(0, 0). If the hole is wet, then some oil
is extracted: L(Volume | Oil =
wet) = N(6, 1). If the hole is soaking with oil, then a lot of oil
is ex-
tracted: L(Volume | Oil = soaking) = N(13.5, 4). The unit is a thousand bar-
rels. The cost of drilling follows a Gaussian distribution L(Cost | Drill = yes)

4.2 Decision Making Under Uncertainty

89

= N(70, 100). We assume that the price of oil Price also follows a Gaussian
distribution L(Price) = N(20, 4).

Notice that the continuous utility functions U2 and U3 are not linear-

quadratic in their continuous domain variables.

4.2.3 Limited Memory Inﬂuence Diagrams

The framework of inﬂuence diagrams oﬀers compact and intuitive models for
reasoning about decision making under uncertainty. Two of the fundamen-
tal assumptions of the inﬂuence diagram representation are the no-forgetting
assumption implying perfect recall of the past and the assumption of a to-
tal order on the decisions. The limited memory inﬂuence diagram framework
(LIMID) (Lauritzen & Nilsson 2001) relaxes both of these fundamental as-
sumptions.

Relaxing the no-forgetting and the total order (on decisions) assumptions
largely increases the class of multistage decision problems that can be mod-
eled. LIMIDs allow us to model more types of decision problems than the
ordinary inﬂuence diagrams.

The graphical diﬀerence between the LIMID representation and the or-
dinary inﬂuence diagram representation is that the latter representation (as
presented in this book) assumes some informational links to be implicitly
present in the graph. This assumption is not made in the LIMID represen-
tation. For this reason it is necessary to explicitly represent all information
available to the decision maker at each decision.

The deﬁnition of a limited memory inﬂuence diagram is as follows.

Deﬁnition 4.6. A LIMID N = (X, G, P, U) consists of

• a DAG G = (V, E) with nodes V and directed links E encoding dependence

relations and information precedence

• a set of random variables, XC, and discrete decision variables, XD, such

that X = XC ∪ XD represented by nodes of G

• a set of conditional probability distributions, P, containing one distribu-

tion, P(Xv | Xpa(v)), for each discrete random variable Xv

• a set of utility functions, U, containing one utility function, u(Xpa(v)), for

each node v in the subset VU ⊂ V of utility nodes.

Using the LIMID representation it is possible to model multistage deci-
sion problems with unordered sequences of decisions and decision problems
in which perfect recall cannot be assumed or may not be appropriate. This
makes the LIMID framework a good candidate for modeling large and com-
plex domains using an appropriate assumption of forgetfulness of the decision
maker. Notice that all decision problems that can be represented as an ordi-
nary inﬂuence diagram can also be represented as a LIMID.

90

4 Probabilistic Networks

Dj

E

F

Uj

C

A

D

Di

B

Ui

Fig. 4.14. A LIMID representation of a decision scenario with two unordered deci-
sions.

Example 4.12. Figure 4.14 shows an example of a LIMID representation N =
(X, G, P, U) of a decision scenario with two unordered decisions. Prior to de-
cision Di observations on the values of A and C are made, while prior to
decision Dj an observation on the value of E is made. Notice that the obser-
vations on A and C made prior to decision Di are not available at decision Dj
and vice versa for the observation on E.

Example 4.13 (Breeding Pigs (Lauritzen & Nilsson 2001)). A pig farmer is
growing pigs for a period of four months and subsequently selling them. During
this period the pigs may or may not develop a certain disease. If a pig has the
disease at the time it must be sold for slaughtering, its expected market price
is e 40. If it is disease free, its expected market price as a breeding animal is
e 135.

Once a month, a veterinarian inspects each pig and makes a test for pres-
ence of the disease. If a pig is ill, the test will indicate this with probabil-
ity 0.80, and if the pig is healthy, the test will indicate this with probabil-
ity 0.90. At each monthly visit, the doctor may or may not treat a pig for the
disease by injecting a certain drug. The cost of an injection is e 13.

A pig has the disease in the ﬁrst month with probability 0.10. A healthy
pig develops the disease in the following month with probability 0.20 with-
out injection, whereas a healthy and treated pig develops the disease with
probability 0.10, so the injection has some preventive eﬀect. An untreated pig
that is unhealthy will remain so in the following month with probability 0.90,
whereas the similar probability is 0.50 for an unhealthy pig that is treated.
Thus, spontaneous cure is possible, but treatment is beneﬁcial on average.

The qualitative structure of the LIMID representation of this decision
problem is shown in Figure 4.15 on the facing page. Notice that we make
the assumption that the test result Ri is only available for decision Di. This

4.3 Object-Oriented Probabilistic Networks

91

H4

P

H1

R1

D1

C1

H2

R2

D2

C2

H3

R3

D3

C3

Fig. 4.15. Three test-and-treat cycles are performed prior to selling a pig.

implies that the test result is not taken into account for future decisions as it
is either forgotten or ignored.

The above example could be modeled as a standard inﬂuence diagram,
but if more test-and-treat cycles must be performed, the state space size
of the past renders decision making intractable. Therefore, it is appropriate
to make the decision on whether or not to treat based on the current test
result (and not considering past test results and possible treatments) – in this
case, individual records for the pigs need not be kept. In short, the example
illustrates a situation where instead of keeping track of all past observations
and decisions, some of these are deliberately ignored (in order to maintain
tractability of the task of computing policies).

4.3 Object-Oriented Probabilistic Networks

As large and complex systems are often composed of collections of identical or
similar components, models of such systems will naturally contain repetitive
patterns. A complex system will typically be composed of a large number of
similar or even identical components. This composition of the system should
be reﬂected in models of the system to support model construction, mainte-
nance, and reconﬁguration. For instance, a diagnosis model for diagnosing car
start problems could reﬂect the natural decomposition of a car into its engine,
electrical system, fuel system, etc.

To support this approach to model development, the framework of object-
oriented probabilistic networks has been developed, see e.g. (Koller & Pfeﬀer
1997, Laskey & Mahoney 1997, Neil, Fenton & Nielsen 2000). Object-orienta-
tion may be deﬁned in the following way

object-orientation = objects + inheritance,

92

4 Probabilistic Networks

where objects are instances of classes and inheritance deﬁnes a relationship be-
tween classes. Thus, we need to introduce the notion of objects and classes. In
this section, we introduce the notion of object-oriented probabilistic networks
(OOPNs).

The basic OOPN mechanisms described below support a type of object-
oriented speciﬁcation of probabilistic networks, which makes it simple to reuse
models, to encapsulate sub-models (providing a means for hierarchical model
speciﬁcation), and to perform model construction in a top-down fashion, a
bottom-up fashion, or a mixture of the two (allowing repeated changes of
level of abstraction).

An object-oriented modeling paradigm provides support for working with
diﬀerent levels of abstraction in constructing network models. Repeated
changes of focus are partly due to the fact that humans naturally think about
systems in terms of hierarchies of abstractions and partly due to lack of ability
to mentally capture all details of a complex system simultaneously. Specify-
ing a model in a hierarchical fashion often makes the model less cluttered,
and thus provides a better means of communicating ideas among knowledge
engineers, domain experts, and users.

In the OOPN paradigm we present, an instance or object has a set of
variables and related functions (i.e., probability distributions, probability den-
sities, utility functions, and precedence constraints). This implies that in ad-
dition to the usual types of nodes, the graph of an OOPN model may contain
nodes representing instances of other networks encapsulated in the model. A
node that does not represent an instance of a network class is said to represent
a basic variable.

An instance represents an instantiation of a network class within another
network class. A network class is a blueprint for an instance. As such, a net-
work class is a named and self-contained description of a probabilistic net-
work, characterized by its name, interface, and hidden part. As instances can
be nested, an object-oriented network can be viewed as a hierarchical descrip-
tion of a problem domain. In this way, an instance M is the instantiation
(or realization) of a network class CM within another network class CN, see
Figure 4.16 on the next page.

An instance connects to other variables via some of its (basic) variables.
These variables are known as its interface variables. As we wish to support
information hiding, the interface variables usually only constitute a subset of
the variables in the network class.

Let us be more precise. A network class C is a DAG over three pairwise
disjoint sets of nodes I(C), H(C), O(C) where I(C) are the input nodes, H(C)
are the hidden nodes, and O(C) are the output nodes of C. The set I(C)∪O(C)
is the interface of C. Interface nodes may represent either decision or random
variables, whereas hidden nodes may be instances of network classes, decision
variables, random variables, and utility functions.

Deﬁnition 4.7. An OOPN network class C = (N, I, O) consists of

4.3 Object-Oriented Probabilistic Networks

93

C1

C3

C2

C1

C2

M

C3

Fig. 4.16. M is an instance of a network class CM within another network class CN .

• a probabilistic network N over variables X with DAG G
• a set of basic variables I ⊆ X speciﬁed as input variables and a set of
basic variables O ⊆ X speciﬁed as output variables such that I ∩ O = ∅
and H = X \ (I ∪ O).

In the graphical representation of an OOPN instances are represented as
rectangles with arc-shaped corners whereas input variables are represented
as dashed ovals and output variables are represented as bold ovals. If the
interface variables of a network instance are not shown, then the instance is
collapsed. Otherwise it is expanded.

Since an OOPN implements information hiding through encapsulation, we
need to be clear on scope rules. First, we deﬁne the notations of simple and
qualiﬁed names. If X is a variable of a network instance N, then X is the simple
name of the variable, whereas N.X is the qualiﬁed name (also known as the
long name) of the variable. The scope S(X) of a variable X (i.e., a basic variable
or an instance) is deﬁned as the part of a model in which the declaration of X
can be referred to by its simple name.

The (internal) scope S(C) of a network class C is the set of variables
and instances which can be referred to by their simple names inside C. For
instance, the internal scope of the network CN in Figure 4.16 is S(CN) =
{C1, C3, C2, M}. The scope of an instance M of a network class CM, i.e.,
class(M) = CM, is deﬁned in a similar manner.

The interface variables I(C) ∪ O(C) of C are used to enlarge the visibility
of basic variables in the instantiations of C. The visibility of a variable X can
be enlarged by specifying it as either an input or an output variable of its
class.

An input variable X of an instance M is a placeholder for a variable (the
parent of X) in the encapsulating class of M. Therefore, an input variable has
at most one parent. An output variable X of an instance M, on the other
hand, enlarges the visibility of X to include the encapsulating network class
of M.

94

4 Probabilistic Networks

Notice that the scope of a variable is distinct from visibility of the variable.
In Figure 4.16, the scope of output variable C3 is M whereas its visibility is
enlarged to include N by deﬁning it as an output variable of M.

An input variable I of an instance M of network class C is bound if it
has a parent X in the network class encapsulating M. Each input random
variable I of a class C is assigned a default prior probability distribution P(I),
which becomes the probability distribution of the variable I in all instances
of C where I is an unbound input variable. A link into a node representing an
input variable may be referred to as a binding link.

Let M be an instance of network class C. Each input variable I ∈ I(C)
has no parent in C, no children outside C, and the corresponding variable
of M has at most one parent in the encapsulating class of M. Each output
variable O ∈ O(C) may only have parents in I(C) ∪ H(C). The children and
parents of H ∈ H(C) are subsets of the variables of C.

Example 4.14. Figure 4.16 shows a class instance M of a network class CM
instantiated within another network class CN. Network class CN has input
variable C1, hidden variables C3 and M, and output variable C2. The network
class CM has input variables C1 and C2, output variable C3, and unknown
hidden variables. The input variable C1 of instance M is bound to C1 of CN
whereas C2 is unbound.

Since C1 ∈ I(CN) is bound to C1 ∈ I(M), the visibility of C1 ∈ I(CN)
is extended to include the internal scope of M. Hence, when we refer to C1 ∈
I(CM) inside CM, we are in fact referring to C1 ∈ I(CN) as C1 ∈ I(CM) in in-
stance M is a placeholder for C1 ∈ I(CN) (i.e., you may think of C1 ∈ I(CM)
as the formal parameter of CM and C1 ∈ I(CN) as the actual parameter
of M).

Since an input variable I ∈ I(M) of an instance M is a placeholder for
a variable Y in the internal scope of the encapsulating instance of M, type
checking becomes important when the variable Y is bound to I. The variable I
enlarges the visibility of Y to include the internal scope of M and it should
therefore be equivalent to Y. We deﬁne two variables Y and X to be equivalent
as follows.

Deﬁnition 4.8. Two variables X and Y are equivalent if and only if they are
of the same kind, category, and subtype with the same state labels in the case
of discrete variables.

This approach to type checking is referred as strong type checking .

If a model contains a lot of repetitive structure, its construction may be
tiresome and the resulting model may even be rather cluttered. Both issues
are solved when using object-oriented models. Another key feature of object-
oriented models is modularity. Modularity allows knowledge engineers to work
on diﬀerent parts of the model independently once an appropriate interface
has been deﬁned. The following example will illustrate this point.

4.3 Object-Oriented Probabilistic Networks

95

Example 4.15 (Apple Jack’s Garden). Let us assume that Apple Jack from
Example 4.1 on page 66 has a garden of three apple trees (including his ﬁnest
apple tree). He may want to reason about the sickness of each tree given
observations on whether or not some of the trees in the garden are losing
their leaves.

Drought

Sick

Dry

Loses

Fig. 4.17. The Apple Tree network class.

Figure 4.17 shows the Apple Tree network class. The prior of each tree
being sick will be the same while the dryness of a tree is caused by a drought.
The drought is an input variable of the Apple Tree network class. If there
is a drought this will impact the dryness of all trees. The prior on drought
is P(Drought) = (0.9, 0.1) while the conditional distribution of Dry conditional
on Drought is shown in Table 4.9.

Dry

Drought

no

no
yes

0.85
0.35

yes

0.15
0.65

Table 4.9. The conditional probability distribution P(Drought | Dry).

Figure 4.18 shows the network class of the Apple Garden. The input vari-
able Drought of each of the instances of the Apple Tree network class is bound
to the Drought variable in the Apple Garden network class. This enlarges the
visibility of the Drought variable (in the Apple Garden network class) to the
internal scope deﬁned by each instance.

The two instances Tree1 and Tree2 are collapsed (i.e., not showing the
interface variables) while the instance Tree3 is expanded (i.e., not collapsed)
illustrating the interface of the network class.

The Drought variable could be an input variable of the Apple Garden
network class as well as it is determined by other complex factors. For the

96

4 Probabilistic Networks

Drought

Tree1

Tree2

Drought

Tree3

Fig. 4.18. The Apple Garden network consisting of three instantiations of the Apple
Tree network.

sake of simplicity of the example, we have made it a hidden variable of the
Apple Garden network class.

As mentioned above, a default prior distribution P(X) is assigned to each
input variable X ∈ I(C) of the class C = (N, O, I). Assigning a default po-
tential to each input variable X implies that any network class is a valid
probabilistic network model.

4.3.1 Chain Rule

It should be clear from the above discussion that each OOPN encodes either a
probability distribution or an expected utility function. For simplicity we will
discuss only the chain rule for object-oriented (discrete) Bayesian networks.
The chain rule of an object-oriented Bayesian network reﬂects the hierarchical
structure of the model.

An instance M of network class C encapsulates a conditional probabil-
ity distribution over its random variables given its unbound input nodes.
For further simplicity, let C = (N, I, O) be a network class over basic dis-
crete random variables only (i.e., no instances, no decisions, and no utili-
ties) with N = (X, G, P) where X ∈ X is the only input variable, i.e., X ∈ I
and | I | = 1. SinceX has a default prior distribution, N is a valid model
representing the joint probability distribution

P(X) = P(X)

P(Yv | Xpa(v)).

(cid:5)

Yv(cid:6)=X

In general, an instance M is a representation of the conditional probability
distribution P(O | I (cid:2)) where I (cid:2) ⊆ I is the subset of bound input variables of M

P(O | I (cid:2)) =

4.3.2 Unfolded OOPNs

(cid:5)

(cid:5)

P(X)

P(Yv | Xpa(v)).

X∈I \ I(cid:2)

Yv(cid:6)∈I

An object-oriented network N has an equivalent ﬂat or unfolded network model
representation M. The unfolded network model of an object-oriented net-
work N is obtained by recursively unfolding the instance nodes of N. The

4.3 Object-Oriented Probabilistic Networks

97

unfolded network representation of a network class is important as it is the
structure used for inference.

The joint distribution of an object-oriented Bayesian network model is

equivalent to the joint distribution of its unfolded network model

P(X) =

(cid:5)

Xv∈XM

P(Xv | Xpa(v)),

where M = (X, G, P) is the unfolded network.

4.3.3 Instance Trees

An object-oriented model is a hierarchical model representation. The instance
tree T of an object-oriented model N is a tree over the set of instances of classes
in N. Two nodes vi and vj in T (with vi closer to the root of T than vj) are
connected by an undirected link if and only if the instance represented by vi
contains the instance represented by vj. The root of an instance tree is the
top level network class not instantiated in any other network class within the
model. Notice that an instance tree is unique.

In addition to the notion of default potentials there is the notion of the
default instance. Let C be a network class with instance tree T . Each non-root
node v of T represents an instance of a class Cv whereas the root node r of T
represents an instance of the unique class Cr, which has not been instantiated
in any class. This instance is referred to as the default instance of Cr.

Example 4.16. Figure 4.19 shows the instance tree of a network class N where
the root is the default instance of N.

v

Fig. 4.19. An instance tree.

Each node v of T represents an instance M and the children of v in T

represents instances in M.

98

4 Probabilistic Networks

4.3.4 Inheritance

Another important concept of the OOPN framework is inheritance. For sim-
plicity, we deﬁne inheritance as the ability of an instance to take its interface
deﬁnition from another instance. Let C1 be a network class with input vari-
ables I(C1) and output variables O(C1), i.e., C1 = (N1, I1, O1). A network
class C2 = (N2, I2, O2) may be speciﬁed as a subclass of C1 if and only
if I1 ⊆ I2 and O1 ⊆ O2. Hence, subclasses may enlarge the interface.

4.4 Dynamic Models

The graph of a probabilistic network is restricted to be a ﬁnite acyclic directed
graph, see Section 2.1. This seems to imply that probabilistic networks as such
do not support models with feedback loops or models of dynamic systems
changing over time. This is not the case. A common approach to representing
and solving dynamic models or models with feedback loops is to unroll the
dynamic model for the desired number of time steps and treat the resulting
network as a static network. Similarly, a feedback loop can be unrolled and
represented using a desired number of time steps. The unrolled static network
is then solved using a standard algorithm applying evidence at the appropriate
time steps.

X1

X2

X3

X4

Fig. 4.20. The structure of a static network model.

As an example of a dynamic model consider the problem of monitoring the
state of a dynamic process over a speciﬁc period of time. Assume the network
of Figure 4.20 is an appropriate model of the causal relations between variables
representing the system at any point in time. The structure of this network
is static in the sense that it represents the state of the system at a certain
point in time. In the process of monitoring the state of the system over a
speciﬁc period of time, we will make observations on a subset of the variables
in the network and make inference about the remaining unobserved variables.

4.4 Dynamic Models

99

In addition to reasoning about the current state of the system, we may want
to reason about the state of the system at previous and future points in time.
For this usage the network in Figure 4.20 is inadequate. Furthermore, the
state of the system at the current point in time will impact the state of the
system in the future and be impacted by the state of the system in the past.
What is needed is a time-sliced model covering the period of time over
which the system should be monitored. Figure 4.21 indicates a time-sliced
model constructed based on the static network shown in Figure 4.20. Each
time-slice consists of the structure shown in Figure 4.20 while the development
of the system is speciﬁed by links between variables of diﬀerent time-slices.

smoothing

X1
1

X1
2

X2
1

X2
2

X1
3

X1
4

X2
3

X2
4

ti

. . .

. . .

. . .

prediction

Xn
1

Xn
2

Xn
3

Xn
4

t1
tn
Fig. 4.21. The structure of a dynamic model with n time-slices.

t2

. . .

The temporal links of a time-slice ti is the set of links from variables of
time-slice ti−1 into variables of time-slice ti. The temporal links of time slice ti
deﬁne the conditional distribution of the variables of time slice ti given the
variables of time slice ti−1. The temporal links connect variables of adjacent
time slices. For instance, the temporal links of time-slice t2 in Figure 4.21 is
the set {(X1

1, X2

1), (X1

3, X2

3)}.

The interface of a time-slice is the set of variables with parents in the
previous time-slice. For instance, the interface of time-slice t2 in Figure 4.21
is the set {X2

1, X2
3}.

Three additional concepts are often used in relation to dynamic models.
Let i be the current time step, then smoothing is the process of querying about
the state of the system at a previous time step j < i given evidence about
the system at time i, ﬁltering is the process of querying about the state of
the system at the current time step, and prediction is the process of querying
about the state of the system at a future time step j > i.

A dynamic Bayesian network is stationary when the transition probability
distributions are invariant between time steps. A dynamic Bayesian network
is ﬁrst-order Markovian when the variables at time step i + 1 are d-separated

100

4 Probabilistic Networks

from the variables at time step i − 1 given the variables at time step i. When
a system is stationary and Markovian, the state of the system at time i + 1
only depends on its state at time i, and the probabilistic dependence relations
are the same for all i. The Markovian property implies that arcs between time
slices only go from one time slice to the subsequent time slice.

A dynamic Bayesian network is referred to as either a dynamic Bayesian
network (DBN) or a time-sliced Bayesian network (TBN). See Kjærulﬀ (1995)
for more details on dynamic Bayesian networks.

Example 4.17 (Apple Jack’s Finest Tree). Figure 4.1 of Example 4.1 on
page 66 shows the Apple Jack network. The network is used for reasoning
about the cause of Apple Jack’s ﬁnest apple tree losing its leaves. The net-
work is static and models the dependence relations between two diseases and
a symptom at four speciﬁc points in time where Apple Jack is observing his
tree.

Consider the case where Apple Jack is monitoring the development of the
disease over a period of time by observing the tree each day in the morning.
In this case the level of dryness of the tree on a speciﬁc day will depend on
the level of dryness on the previous day and impact the level of dryness on the
next day; similarly for the level of sickness. The levels of dryness and sickness
on the next day are independent of the levels of dryness and sickness on the
previous day given the levels of dryness and sickness on the current day. This
can be captured by a dynamic model.

Dry1

Dry2

Dry3

Dry4

Loses1

Loses2

Loses3

Loses4

Sick1

Sick2

Sick3

Sick4

Fig. 4.22. A model with four time-slices.

Figure 4.22 shows a dynamic model with four time slices. Each time step
models the state of the apple tree at a speciﬁc point in time (the dashed
lines illustrates the separation of the model into time slices). The conditional
probability distributions P(Dryi | Dryi−1) and P(Sicki | Sicki−1) are the transi-
tion probability distributions. The interface between time slices i − 1 and i
consists of Dryi and Sicki.

Assume that it is the second day when Apple Jack is observing his tree. The
observations on Loses of the ﬁrst and second day are entered as evidence on the
corresponding variables. Filtering is the task of computing the probability of
the tree being sick on the second day, smoothing is the task of computing the

4.4 Dynamic Models

101

probability of sickness on the ﬁrst day and prediction is the task of computing
the probability of the tree being sick on the third or fourth day.

Dynamic models are not restricted to be Bayesian networks. Inﬂuence

diagrams and LIMIDs can also be represented as dynamic models.

Time-sliced networks are often represented using object-oriented networks

as the following example illustrates.

Example 4.18 (Breeding Pigs). Example 4.13 shows a LIMID representation
of a decision problem related to breeding pigs, see Figure 4.15 on page 91. The
decision problem is in fact modeled as a time-sliced model where the structure
of each time-slice representing a test-and-treat cycle is shown in Figure 4.23.

Hi+1

Hi

Ri

Di

Ci

Fig. 4.23. The test-and-treat cycle of the Breeding Pigs network in Figure 4.15.

Three instances of the network class in Figure 4.23 are constructed to
create the network in Figure 4.24. The use of object-oriented modeling has
simpliﬁed the network construction.

Cycle1

Cycle2

Cycle3

C4

Fig. 4.24. The Breeding Pigs network as a time-sliced OOPN.

The network in Figure 4.24 is equivalent to the network in Figure 4.15 on

page 91.

Kjærulﬀ (1995) has described a computational system for dynamic time-
sliced Bayesian networks. The system implemented is referred to as dHugin.
Boyen & Koller (1998) have described an approximate inference algorithm for
solving dynamic Bayesian networks with bounds on the approximation error.

102

4 Probabilistic Networks

4.5 Summary

In this chapter we have introduced probabilistic networks for reasoning and
decision making under uncertainty. A probabilistic network represents and
processes probabilistic knowledge. The qualitative component of a proba-
bilistic network encodes a set of (conditional) dependence and independence
statements among a set of random variables, informational precedence, and
preference relations. The quantitative component speciﬁes the strengths of
dependence relations using probability theory and preference relations using
utility theory.

We have introduced discrete Bayesian network models and CLG Bayesian
network models for reasoning under uncertainty. A discrete Bayesian net-
work supports the use of discrete random variables whereas a CLG Bayesian
network supports the use of a mixture of continuous and discrete random
variables. The continuous variables are constrained to be conditional linear
Gaussian variables. The chapter contains a number of examples that illus-
trate the use of Bayesian networks for reasoning under uncertainty.

Discrete inﬂuence diagrams, CLQG inﬂuence diagrams, and limited mem-
ory inﬂuence diagrams were introduced as models for reasoning and decision
making under uncertainty. An inﬂuence diagram is a Bayesian network aug-
mented with decision variables, informational precedence relations, and pref-
erence relations. A discrete inﬂuence diagram supports the use of discrete
random and decision variables with an additively decomposing utility func-
tion. A CLQG inﬂuence diagram supports the use of a mixture of continuous
and discrete variables. The continuous random variables are constrained to be
conditional linear Gaussian variables while the utility function is constrained
to be linear-quadratic. A limited memory inﬂuence diagram is an extension
of the discrete inﬂuence diagram where the assumptions of no-forgetting and
a total order on the decisions are relaxed. This allows us to model a large
set of decision problems that cannot be modeled using the traditional inﬂu-
ence diagram representation. The chapter contains a number of examples that
illustrate the use of inﬂuence diagrams for decision making under uncertainty.
Finally, we have introduced OOPNs. The basic OOPN mechanisms in-
troduced support a type of object-oriented speciﬁcation of probabilistic net-
works, which makes it simple to reuse models, to encapsulate sub-models, and
to perform model construction at diﬀerent levels of abstraction. The chapter
contains a number of examples that illustrates the use of the basic OOPN
mechanisms in the model development process. OOPNs are well-suited for
constructing time-sliced networks. Time-sliced networks are used to represent
dynamic models.

In Chapter 5 we discuss techniques for solving probabilistic networks.

Exercises

103

Exercises

Exercise 4.1. Peter and Eric are chefs at Restaurant Bayes. Peter works six
days a week while Eric works one day a week. In 90% of the cases Peter’s
food is high quality while Eric’s food is high quality in 50% of the cases. One
evening Restaurant Bayes serves an awful meal.

Is it fair to conclude that Eric prepared the food that evening?

Exercise 4.2. One in a thousand people has a prevalence for a particular
heart disease. There is a test to detect this disease. The test is 100% accurate
for people who have the disease and is 95% accurate for those who do not
(this means that 5% of people who do not have the disease will be wrongly
diagnosed as having it).

If a randomly selected person tests positive what is the probability that
the person actually has the heart disease?

Exercise 4.3. Assume a math class is oﬀered once every semester while an
AI class is oﬀered twice. The number of students taking a class depends on the
subject. On average 120 students take AI (σ2 = 500) while 180 students take
math (σ2 = 1000). Assume that on average 25% pass the AI exam (σ2 = 400)
while 50% pass the math exam (σ2 = 500).

(a) What is the average number of students passing either a math or AI an

exam?

(b) What is the average number of students passing a math exam?
(c) What is the average number of students taking a math class when 80

students pass the exam?

Exercise 4.4. Frank goes to the doctor because he believes that he has got
the ﬂu. At this particular time of the year, the doctor estimates that one out
of 1000 people suﬀers from the ﬂu. The ﬁrst thing the doctor checks is whether
Frank appears to have the standard symptoms of the ﬂu; if Frank suﬀers from
the ﬂu, then he will exhibit these symptoms with probability 0.9, but if he
does not have the ﬂu he may still have these symptoms with probability 0.05.
After checking whether or not Frank has the symptoms, the doctor can decide
to have a test performed which may reveal more information about whether
or not Frank suﬀers from the ﬂu; the cost of performing the test is e 40.
The test can either give a positive or a negative result, and the frequency of
false positives and false negatives is 0.05 and 0.1, respectively. After observing
the test result (if any) the doctor can decide to administer a drug that with
probability 0.6 may shorten the sickness period if Frank suﬀers from the ﬂu (if
he has not got the ﬂu, then the drug has no eﬀect). The cost of administering
the drug is e 100, and if the sickness period is shortened the doctor estimates
that this is worth e 1000.

(a) Construct an inﬂuence diagram for the doctor from the description above.

104

4 Probabilistic Networks

(b) Specify the probability distributions and the utility functions for the in-

ﬂuence diagram.

Exercise 4.5. Assume that Frank is thinking about buying a used car for
e 20, 000, and the market price for similar cars with no defects is e 23, 000.
The car may, however, have defects which can be repaired at the cost of
e 5000; the probability that the car has defects is 0.3. Frank has the option
of asking a mechanic to perform (exactly) one out of two diﬀerent tests on
the car. Test1 has three possible outcomes, namely no-defects, defects and
inconclusive. For Test2 there are only two possible outcomes (no-defects and
defects). If Frank chooses to have a test performed on the car, the mechanic
will report the result back to Frank who then decides whether of not to buy
the car; the cost of Test1 is e 300 and the cost of Test2 is e 1000.

(a) Construct an inﬂuence diagram for Frank’s decision problem.
(b) Calculate the maximum expected utility and the optimal strategy for the
inﬂuence diagram; calculate the required probabilities from the joint prob-
ability table (over the variables Test1, Test2 and StateOfCar) speciﬁed be-
low.

Test2

no-defects
defects

no-defects
(0.448, 0.00375)
(0.112, 0.01125)

Test1
defects
(0.028, 0.05625)
(0.007, 0.16875)

inconclusive
(0.084, 0.015)
(0.021, 0.045)

Exercise 4.6. An environmental agency visits a site where a chemical pro-
duction facility has previously been situated. Based on the agency’s knowledge
about the facility, they estimate that there is a 0.6 risk that chemicals from
the facility have contaminated the soil. If the soil is contaminated (and noth-
ing is done about it) all people in the surrounding area will have to undergo
a medical examination due to the possible exposure; there are 1000 people
in the area, and the cost of examining/treating one person is $100. To avoid
exposure, the agency can decide to remove the top layer of the soil which,
in case the ground is contaminated, will completely remove the risk of ex-
posure; the cost of removing the soil is $30, 000. Before making the decision
of whether or not to remove the top layer of soil, the agency can perform a
test which will give a positive result (with probability 0.9) if the ground is
contaminated; if the ground is not contaminated the test will give a positive
result with probability 0.01. The cost of performing the test is $1000.

(a) Construct an inﬂuence diagram for the environmental agency from the

description above.

(b) Specify the probability distributions and the utility functions for the in-

ﬂuence diagram.

Exercise 4.7. A company has observed that one of their software systems is
unstable, and they have identiﬁed a component which they suspect is the cause

Exercises

105

of the instability. The company estimates that the prior probability for the
component being faulty is 0.01, and if the component is faulty then it causes
the system to become unstable with probability 0.99; if the component is not
faulty, then the system may still be unstable (due to some other unspeciﬁed
element) with probability 0.001.

To try to solve the problem the company must ﬁrst decide whether to
patch the component at a cost e 10, 000 : if the component is faulty, then the
patch will solve the fault with probability 0.95 (there may be several things
wrong, not all of which may be covered by the patch), but if the component
is not faulty then the patch will have no eﬀect. The company also knows
that in the near future the vendor of the component will make another patch
available at the cost of e 20, 000; the two patches focus on diﬀerent parts of
the component. This new patch will solve the problem with probability 0.99,
and (as for the ﬁrst patch) if the component is not faulty then the patch will
have no eﬀect. Thus, after deciding on the ﬁrst patch, the company observes
whether or not the patch solved the problem (i.e., is the system still unstable?)
and it then has to decide on the second patch. The company estimates that
(after the ﬁnal decision has been made) the value of having a fully functioning
component is worth e 100, 000.

(a) Construct an inﬂuence diagram for the company from the description

above.

(b) Specify the probability distributions and the utility functions for the in-

ﬂuence diagram.

Exercise 4.8. Consider a stud farm with ten horses where Cecily has un-
known mare and sire, John has mare Irene and sire Henry, Henry has mare
Dorothy and sire Fred, Irene has mare Gwenn and sire Eric, Gwenn has mare
Ann and unknown sire, Eric has mare Cecily and sire Brian, Fred has mare
Ann and unknown sire, Brian has unknown mare and sire, Dorothy has mare
Ann and sire Brian, and Ann has unknown mare and sire, see Figure 4.25.

Cecily

Ann

Brian

Eric

Gwenn

Fred

Dorothy

Irene

Henry

John

Fig. 4.25. The stud farm pedigree.

106

4 Probabilistic Networks

A sick horse has genotype aa, a carrier of the disease has genotype aA,

and a non-carrier has genotype AA. P(aa, aA, AA) = (0.1, 0.2, 0.7)

(a) Construct an object-oriented network representation of the stud farm prob-

lem.

(b) What is the probability of each horse being sick/a carrier/a non-carrier

once we learn that John is sick?

5

Solving Probabilistic Networks

We build knowledge bases in order to formulate our knowledge about a certain
problem domain in a structured way. The purpose of the knowledge base
is to support our reasoning about events and decisions in a domain with
inherent uncertainty. The fundamental idea of solving a probabilistic network
is to exploit the structure of the knowledge base to reason eﬃciently about
the events and decisions of the domain taking the inherent uncertainty into
account.

An expert system consists of a knowledge base and an inference engine.
The inference engine is used to solve queries against the knowledge base. In
the case of probabilistic networks, we have a clear distinction between the
knowledge base and the inference engine. The knowledge base is the Bayesian
network or inﬂuence diagram, whereas the inference engine consists of a set
of generic methods that applies the knowledge formulated in the knowledge
base on task-speciﬁc data sets, known as evidence, to compute solutions to
queries against the knowledge base. The knowledge base alone is of limited
use if it cannot be applied to update our belief about the state of the world
or to identify (optimal) decisions in the light of new knowledge.

As we saw in the previous chapter, the knowledge bases we consider are
probabilistic networks. A probabilistic network may be an eﬃcient represen-
tation of a joint probability distribution or a joint expected utility function.
In the former case the model is a Bayesian network, while in the latter case
it is an inﬂuence diagram.

In this chapter we consider the process of solving probabilistic networks.
As the exact nature of solving a query against a probabilistic network depends
on the type of model, the solution process of Bayesian networks and inﬂuence
diagrams are considered separately in the following sections.

Section 5.1 considers probabilistic inference in Bayesian networks as the
task of computing posterior beliefs in the light of evidence. A number of diﬀer-
ent approaches to inference are considered. We consider variable elimination,
query-based inference, arc reversal, and message passing in junction trees. The
inference process in discrete Bayesian networks is treated in detail, while the

108

5 Solving Probabilistic Networks

inference process in CLG Bayesian networks and CLQG inﬂuence diagrams
is outlined. In Section 5.2 we consider the task of solving decision models.
Solving a decision model amounts to computing maximum expected utilities.
We derive a generic method for solving inﬂuence diagrams and LIMIDs.

Parts of this chapter have appeared in Madsen, Jensen, Kjærulﬀ & Lang

(2005).

5.1 Probabilistic Inference

We build Bayesian network models in order to support eﬃcient reasoning
under uncertainty in a given domain. Reasoning under uncertainty is the task
of computing our updated beliefs in (unobserved) events given observations
on other events, i.e., evidence.

5.1.1 Inference in Discrete Bayesian Networks

One particular type of probabilistic inference task in Bayesian networks is the
task of computing the posterior marginal of an unobserved variable Y given
a (possibly empty) set of evidence ε, i.e., P(Y | ε). Let N = (X, G, P) be a
Bayesian network over the set of discrete random variables X = {X1, . . . , Xn},
and assume that ε = ∅. Exploiting the chain rule for Bayesian networks (see
e.g., Equation 4.1 on page 65), for variable Y ∈ X, we may compute
(cid:10)

P(Y) =

P(X)

=

X∈X\{Y}
(cid:10)

(cid:5)

X∈X\{Y}

Xv∈X

P(Xv | Xpa(v)).

(5.1)

This is the prior marginal distribution P(Y) of Y. The prior marginal of all
variables may be computed by repetition for each variable.

Example 5.1. Given the example of Apple Jack (Example 4.1 on page 66), we
may consider the task of computing the prior marginal distribution P(L) over
the events that the tree does lose its leaves and that the tree does not lose its
leaves. The distribution P(L) may be computed as

P(L) =

(cid:10)

(cid:10)

S

D

P(S)P(L | S, D)P(D).

Using the quantiﬁcation of the model speciﬁed as part of Example 4.1, we
arrive at the prior distribution P(L) = (0.82, 0.18). Hence, a priori, there is
an 18% probability that the tree will lose its leaves.

5.1 Probabilistic Inference

109

The above approach does not incorporate evidence into the inference task.
In addition, it is a very ineﬃcient approach for non-trivial Bayesian networks
because the joint distribution P(X) over X is constructed as an intermediate
step and because a lot of calculations are repeated.

As we will see, it is possible to develop a more eﬃcient approach to prob-
abilistic inference by exploiting the independence relations induced by the
structure of the DAG and the evidence, and by minimizing the repetition of
calculations. Having said that, let us turn to the general case of computing
the posterior marginal P(X | ε) of a variable, X, given evidence ε.

Let ε = {ε1, . . . , εm} be a non-empty set of evidence over variables X(ε).
For a (non-observed) variable Xj ∈ X of N, the task is to compute the posterior
probability distribution P(Xj | ε). This can be done by exploiting the chain rule
factorization of the joint probability distribution induced by N:

P(Xj | ε) = P(ε | Xj)P(Xj)

= P(Xj, ε)
P(ε)

P(ε)
∝ P(Xj, ε)
=

(cid:10)

P(X, ε)

=

=

Y∈U\{Xj}
(cid:10)

(cid:5)

Y∈U\{Xj}
(cid:10)

Xi∈X
(cid:5)

Y∈U\{Xj}

Xi∈X

P(Xi | Xpa(vi))Eε

P(Xi | Xpa(vi))

(cid:5)

EX

X∈X(ε)

for each Xj (cid:7)∈ X(ε), where EX is the evidence function for X ∈ X(ε) and vi is
the node representing Xi. Notice that

L(Xj | ε) = P(ε | Xj) =

(cid:10)

(cid:5)

Y∈X\{Xj}

i(cid:6)=j

P(Xvi

| Xpa(vi))

(cid:5)

X∈X(ε)

EX

(5.2)

is the likelihood function of Xj given ε. Since P(Xj) may be obtained by
inference over the empty set of evidence, we can — using Bayes’ rule —
compute

P(Xj | ε) ∝ L(Xj | ε)P(Xj).

The proportionality factor is the normalization constant α = P(ε), which is
easily computed from P(X, ε) by summation over X as α =

X P(X, ε).

(cid:6)

Example 5.2. One evening when Apple Jack is taking his usual after-dinner
walk in the garden, he observes his ﬁnest apple tree to be losing its leaves.
Given that he knows that this may be an indication of the tree being sick, he
starts wondering whether or not the tree is sick.

Apple Jack is interested in the probability of the tree being sick given the

observation on the tree losing its leaves

110

5 Solving Probabilistic Networks

P(S | ε) = P(S, ε)
P(ε)
(cid:6)
(cid:6)
S

=

D P(S)P(L | S, D)P(D)EL

P(ε)

∝ (0.0927, 0.0905),

where EL = (0, 1) is the evidence function reﬂecting the tree losing its
leaves. The normalization constant is α = P(ε) = P(S = no | ε) + P(S =
yes | ε) = 0.0927 + 0.0905 = 0.1832. This produces the posterior distribu-
tion P(S | ε) = (0.506, 0.494) over the tree losing its leaves. Hence, there is an
increased probability that the tree is sick when it has been observed to lose
its leaves. The prior distribution on the tree being sick is P(S) = (0.9, 0.1).

In general, probabilistic inference is an NP-hard task (Cooper 1990). Even
approximate probabilistic inference is NP-hard (Dagum & Luby 1993). For
certain classes of Bayesian network models the complexity of probabilistic in-
ference is polynomial or even linear in the number of variables in the network.
The complexity is polynomial when the graph of the Bayesian network is a
poly-tree (Kim & Pearl 1983, Pearl 1988) (a directed graph G is called a poly-
tree, if its underlying undirected graph is singly connected), while it is linear
when the graph of the Bayesian network is a tree.

The most critical problem related to the eﬃciency of the inference process
is that of ﬁnding the optimal order in which to perform the computations.
The inference task is, in principle, solved by performing a sequence of multi-
plications and additions.

Query-Based Inference

One approach to inference is to consider the inference task as the task of
computing the posterior distribution of a set of variables. This is referred
to as query based inference. We deﬁne the notion of a query, Q, against a
Bayesian network model N as follows.

Deﬁnition 5.1 (Query). Let N = (X, G, P) be a Bayesian network model. A
query Q is a three-tuple Q = (N, T, ε) where T ⊆ X is the target set and ε is
the evidence set.

The solution of a query, Q, is the posterior distribution over the target,
i.e., P(T | ε). A variable X is a target variable if X ∈ T. Notice that computing
all posterior marginals of a Bayesian network N = (X, G, P) corresponds to
solving |X| queries, i.e., Q = (N, {X}, ε) for each X ∈ X.

Prior to solving the query Q, the graph G of N may be pruned to include
only variables relevant for the query. One class of variables which may be
pruned from the graph without any computation is the class of barren vari-
ables, see Section 3.3.4 on page 49 for an example. Here we give a formal
deﬁnition of a barren variable.

5.1 Probabilistic Inference

111

Deﬁnition 5.2 (Barren Variable). Let N = (X, G, P) be a Bayesian net-
work and let Q = (N, T ⊆ X, ε) be a query against N. A variable X is a barren
variable with respect to Q, if X (cid:7)∈ T, X (cid:7)∈ ε, and all descendants, de(X), of X
are barren.

When a variable X is classiﬁed as a barren variable, it is always relative
to a target and given a set of evidence. A barren variable does not add any
information to the inference process. It is computationally irrelevant to Q.

Once all barren variables with respect to Q have been pruned from the
graph G, the inference task can be solved by variable elimination as described
in the previous section.

In addition to the concept of a barren variable, there is the concept of a

nuisance variable.

Deﬁnition 5.3 (Nuisance Variable). Let N = (X, G, P) be a Bayesian net-
work and let Q = (N, T ⊆ X, ε) be a query against N. A non-barren variable X
is a nuisance variable with respect to Q, if X (cid:7)∈ T, X (cid:7)∈ ε, and X is not on a
path between any pair of variables Y ∈ T and Z ∈ ε.

Notice that a nuisance variable is computationally relevant for a query Q,
but it is not on a path between any pair of evidence and query variables. Given
a query and a set of evidence variables, the contribution from a nuisance
variable does not depend on the observed values of the evidence variables.
Hence, if a query is to be solved with respect to multiple instantiations over
the evidence variables, then the nuisance variables (and barren variables) may
be eliminated in a preprocessing step to obtain the relevant network (Lin &
Druzdzel 1997). The relevant network consists of target variables, evidence
variables, and variables on paths between target and evidence variables only.

Example 5.3. Returning to the Chest Clinic example (Example 4.2 on page 68),
we may consider the task of computing the probability of each disease given
the observations that the patient is a smoker and has a positive X-ray result.
That is, we need to compute P(Y | ε) for Y ∈ {T, L, B} and ε = {S = yes, X = yes}.
The variables {A, T } are nuisance variables with respect to posteriors for B
and L. The variable D is a barren variable with respect to the posteriors
for B, T , and L, whereasB is a barren variable with respect to the posteriors
for T and L. Figure 5.1 shows the relevant networks for (a) computing P(T | ε)
and P(L | ε), and for (b) computing P(B | ε).

The approach to inference outlined above may be referred to as a di-
rect approach. Arc reversal is a speciﬁc type of direct approach to infer-
ence (Olmsted 1983, Shachter 1986).

Arc Reversal

In Section 3.4.1 on page 52 we illustrated how application of Bayes’ rule can be
given a graphical interpretation as arc reversal. We mentioned that Olmsted

112

5 Solving Probabilistic Networks

S

L

S

L

B

E

X

(b)

T

X

E

(a)

Fig. 5.1. The relevant networks for computing (a) P(T | ε) and P(L | ε), and
(b) P(B | ε).

(1983) and Shachter (1986) have exploited this view of inference in their arc
reversal algorithms for inference in probabilistic networks. Here we consider
the process in more detail.

Let G be the DAG of a Bayesian network N = (X, G, P) and assume a
query Q = (N, {Z}, ∅) against N. The inference task is to compute P(Z) by
eliminating all variables X \ {Z}.

The inference process on G has a natural graphical interpretation as a
sequence of arc reversals and barren variable eliminations. The fundamental
idea is to adjust the structure of G such that all variables except Z are pruned
as barren variables while maintaining the underlying properties of the joint
probability distributions over the remaining variables. The structure of G is
adjusted through a sequence of arc reversal operations.

Assume Xw is the next variable to be eliminated as a barren variable.
Let Xw have parents Xpa(w) = Xi ∪ Xj and Xv have parents Xpa(v) = {Xw} ∪
Xj ∪ Xk where Xi ∩ Xj = Xi ∩ Xk = Xj ∩ Xk = ∅ such that Xi = Xpa(w) \ Xpa(v)
are the parents speciﬁc for Xw, Xj = Xpa(w) ∩ Xpa(v) are the common parents,
and Xk = Xpa(v) \ Xfa(w) are the parents speciﬁc for Xv.

The reversal of arc (w, v) proceeds by setting Xpa(w) = Xi ∪ Xj ∪ Xk ∪ {Xv}
and Xpa(v) = Xi ∪ Xj ∪ Xk as well as performing the computations speciﬁed
below, see Figure 5.2 for a graphical representation

(cid:10)

P(Xv | Xi, Xj, Xk) =

P(Xw | Xi, Xj)P(Xv | Xw, Xj, Xk)

(5.3)

Xw

P(Xw | Xv, Xi, Xj, Xk) = P(Xw | Xi, Xj)P(Xv | Xw, Xj, Xk)

P(Xv | Xi, Xj, Xk)

.

(5.4)

The operation of reversing an arc changes the structure of G without chang-

ing the underlying joint probability distribution over X induced by N.

Once the arc (w, v) has been reversed, the variable Xw is a barren variable
relative to the other variables (given the empty set of evidence), and can be
pruned from G without further computations.

5.1 Probabilistic Inference

113

i

j

k

i

j

k

⇒

w

v

w

v

Fig. 5.2. An illustration of reversal of the arc (w, v).

The basic idea of the inference process known as arc reversal is to perform
a sequence of arc reversals and barren variable eliminations on the DAG G
until a desired marginal or conditional is obtained. In this process a valid
Bayesian network structure is maintained throughout the inference process.

Example 5.4. We may compute the prior probability distribution P(L) in the
Apple Jack example (see Example 4.1 on page 66) using a sequence of arc
reversals and barren variable eliminations as indicated in Figure 5.3.

S

D

S

D

S

S

L

(a)

L

(b)

L

(c)

L

(d)

L

(e)

Fig. 5.3. Computing P(L) by arc reversal.

Notice that the arc reversal method does not have worse complexity than

variable elimination.

Arc reversal is not a local computation algorithm in the sense that when
reversing an arc (w, v), it is necessary to test for existence of a directed path
from w to v not containing (w, v). If such a path exists, then the arc (w, v)
cannot be reversed until one or more other arcs have been reversed as revers-
ing (w, v) would otherwise create a directed path.

Graphical Representation of Inference

We may deﬁne the task of solving a Bayesian network model N = (X, G, P)
as the problem of computing the posterior marginal P(X | ε) given a set of
evidence ε for all variables X ∈ X.

When deﬁning the task of probabilistic inference as the task of computing
the posterior marginals P(X | ε) for all X given evidence ε, the most common
approach is to use a secondary computational structure. Performing inference

114

5 Solving Probabilistic Networks

in a secondary computational structure aims at reusing calculations solving
all queries simultaneously.

From Equation 5.1 on page 108 we should notice the direct correspon-
dence between the acyclic, directed graph G and the factorization of the joint
probability distribution P(X) over X. The domain of each factor in the factor-
ization corresponds to a node and its parents. The head of the factor is the
child node whereas the tail consists of the parents. Furthermore, if we drop
the distinction between head and tail we see that the domain of each factor
corresponds to a clique (a clique is a maximal complete subgraph) of Gm —
the moralization of G. This is exploited to build a secondary structure for
performing inference.

Assume we are in the process of computing P(Xi). LetY be the ﬁrst random
variable to eliminate. The elimination process proceeds by local computation
in order to maintain eﬃciency (i.e., we exploit the distributive law to maintain
the factorization of the joint probability distribution — see Section 3.3.3 on
page 47). The set of probability potentials P can be divided into two disjoint
subsets with respect to Y. LetP Y ⊆ P be the subset of probability potentials
including Y in the domain

PY = {P ∈ P | Y ∈ dom(P)},

where dom(P) denotes the domain of P (i.e., the set of variables over which it
is deﬁned). Then P \ PY is the set of probability potentials not including Y in
their domain. Let φY be the probability potential obtained by eliminating Y
(by summation) from the combination of all probability potentials in PY.
Using φY as well as a generalized version of the distributive law, we may
rewrite Equation 5.1 on page 108 as

P(Xi) =

=

=

=

(cid:10)

(cid:5)

X∈X\{Xi}
(cid:10)

Xv∈X
(cid:5)

P(Xv | Xpa(v))

(cid:5)

φ(cid:2)

φ

X∈X\{Xi}
(cid:10)

φ∈P\PY
(cid:5)

φ(cid:2)∈PY
(cid:10)

(cid:5)

φ

X∈X\{Xi,Y}
(cid:10)

φ∈P\PY

(cid:5)

Y

φ(cid:2)∈PY

φ(cid:2)

φY

φ.

(5.5)

X∈X\{Xi,Y}

φ∈P\PY

Equation 5.5 speciﬁes a decomposition of the joint probability distribution
over X \ {Y}. The decomposition has the form of Equation 5.1. The decom-
position is the product over the elements of P \ PY ∪ {φY}. In addition, we
have performed the elimination over Y by local computations only involving
potentials of which Y is a domain variable. We say that the set

P \ PY ∪ {φY}

5.1 Probabilistic Inference

115

is a reduction of P where Y has been eliminated. The elimination of the next
variable to be eliminated may proceed in the same manner on P \ PY ∪ {φY}.
The order in which variables are eliminated is the elimination order.

An example of this process may be depicted graphically as shown in Fig-
ure 5.4 where we assume dom(φY) ={X 1, X2}. The arrows in the ﬁgure are
used to illustrate the ﬂow of computations.

X1X2Y

X1X2

X1X2X3X4

X2X3X4

· · ·

Fig. 5.4. A graphical illustration of the process of eliminating Y from φ(X1, X2, Y)
and X1 from φ(X1, X2, X3, X4), where the ovals represent the domain of a potential
before elimination, and rectangles represent the domain of a potential after elimi-
nation.

The elimination of Y from φ(X1, X2, Y) creates a potential over φ(X1, X2)
which is included in the elimination of the next variable X1 to be eliminated.
In this way the process continues until the desired marginals are obtained.
Let us consider an even more concrete example.

Example 5.5 (Burglary or Earthquake on page 25). The Bayesian network
shown in Figure 2.3 on page 26, is repeated in Figure 5.5.

B

E

R

A

W

Fig. 5.5. The Burglary or Earthquake network.

The prior marginal on A may be computed by elimination of {B, E, R, W}

as follows

P(A) =

(cid:10)

(cid:10)

P(E)

E

B

P(B)P(A | B, E)

(cid:10)

R

P(R | E)

(cid:10)

W

P(W | A).

(5.6)

Figure 5.6 shows a graphical representation of the computations and po-

tentials created the during process of computing P(A).

Similarly, the prior marginal distribution over W may be computed by

elimination of {A, B, E, R} as follows

116

5 Solving Probabilistic Networks

A

A

AE

AE

ABE

A

AW

E

ER

Fig. 5.6. A graphical illustration of the process of computing P(A) in Equation 5.6,
where the ovals represent the domain of a potential before elimination, and rectangles
represent the domain of a potential after elimination.

P(W) =

(cid:10)

A

P(W | A)

(cid:10)

(cid:10)

P(E)

E

B

P(B)P(A | B, E)

(cid:10)

R

P(R | E).

(5.7)

Figure 5.7 shows a graphical representation of the computations and po-

tentials created during the process of computing of P(W).

W

W

AW

A

AE

AE

ABE

E

ER

Fig. 5.7. A graphical illustration of the process of computing P(W) in Equation 5.7,
where the ovals represent the domain of a potential before elimination, and rectangles
represent the domain of a potential after elimination.

Notice the similarity between the potentials created in the process of com-
puting P(A) and P(W). There is a signiﬁcant overlap between the potentials
created and therefore the calculations performed. This is no coincidence.

Junction Trees

The task of probabilistic inference may be solved eﬃciently by local procedures
operating on a secondary computational structure known as the junction tree
(also known as a join tree and a Markov tree) representation of a Bayesian
network (Jensen & Jensen 1994, Jensen et al. 1994).

The junction tree representation is eﬃcient when solving the inference
task for multiple sets of diﬀerent evidence and target variables. A junction
tree representation T of a Bayesian network N = (X, G, P) is a pair T = (C, S)

5.1 Probabilistic Inference

117

where C is the set of cliques and S is the set of separators. The cliques C are
the nodes of T whereas the separators S annotate the links of the tree. Each
clique C ∈ C represents a maximal complete subset of pairwise connected
variables of X, i.e., C ⊆ X, of an undirected graph.1 The link between two
neighboring cliques Ci and Cj is annotated with the intersection S = Ci ∩ Cj,
where S ∈ S.

Example 5.6 (Chest Clinic). Figure 4.2 on page 69 shows the DAG G of the
Chest Clinic network N = (X, G, P), see Example 4.2 on page 68.

ELT

E

EL

T

EX

BEL

AT

BE

BL

BDE

BLS

Fig. 5.8. A junction tree representation T for the Chest Clinic network.

Figure 5.8 shows a junction tree representation T = (C, S) of the Chest

Clinic network. The junction tree consists of cliques

C = {{A, T }, {B, D, E}, {B, E, L}, {B, L, S}, {E, L, T }, {E, X}}

and separators

S = {{B, E}, {B, L}, {E}, {E, L}, {T }} .

The structure of T is determined from the structure of G.

The process of creating a junction tree representation of a DAG is beyond
the scope of this book. Instead we refer the interested reader to the literature,
see, e.g., Cowell, Dawid, Lauritzen & Spiegelhalter (1999).

The junction tree serves as an excellent control structure for organizing the
computations performed during probabilistic inference. Messages are passed
between cliques of the junction tree in two sweeps such that a single message
is passed between each pair of neighboring cliques in each sweep. This process
is referred to as a propagation of information.

1 The undirected graph is constructed from the moral graph Gm of G by adding
undirected edges until the graph is triangulated. A graph is triangulated if every
cycle of length greater than three has a chord.

118

5 Solving Probabilistic Networks

R

· · ·

Ci

S

Cj

S(cid:3)

S(cid:3)(cid:3)

C(cid:3)

C(cid:3)(cid:3)

Fig. 5.9. When Cj has absorbed information from its other neighbors, Ci can absorb
from Cj.

Once the junction tree T = (C, S) has been constructed, a probability
potential is associated with each clique C ∈ C and each separator S ∈ S
between two adjacent cliques Ci and Cj where S = Ci ∩ Cj, see Figure 5.9.

Inference involves the following steps:

(1) Each item of evidence must be incorporated into the junction tree poten-
tials. For each item of evidence, an evidence function is multiplied onto
an appropriate clique potential.

(2) Some clique R ∈ C of T is selected. This clique is referred to as the root of

the propagation.

(3) Then messages are passed toward the selected root. The messages are
passed through the separators of the junction tree (i.e., along the links of
the tree). These messages cause the potentials of the receiving cliques and
separators to be updated. This phase is known as CollectInformation.
(4) Now messages are passed in the opposite direction (i.e., from the root
toward the leaves of the junction tree). This phase is known as Distrib-
uteInformation.

(5) At this point, the junction tree is said to be in equilibrium: The proba-
bility P(X | ε) can be computed from any clique or separator containing X
— the result will be independent of the chosen clique or separator.
Prior to the initial round of message passing, for each variable Xv ∈ X
we assign the conditional probability distribution P(Xv | Xpa(v)) to a clique C
such that Xfa(v) ⊆ C. Once all conditional probability distributions have been
assigned to cliques, the distributions assigned to each clique are combined to
form the initial clique potential.

Example 5.7. Consider again the junction tree of the Chest Clinic network
shown in Figure 5.8. Each conditional probability distribution P ∈ P is asso-
ciated with a clique of T such that dom(P) ⊆ C for C ∈ C. Notice that the
association of distributions with cliques is unique in this example.

The basic inference algorithm is as follows. Each separator holds a single
potential over the separator variables, which initially is a unity potential.
During propagation of information the separator and clique potentials are

5.1 Probabilistic Inference

119

updated. Consider two adjacent cliques Ci and Cj as shown in Figure 5.9.
When a message is passed from Cj to Ci either during CollectInformation
or DistributeInformation, Ci absorbs information from Cj. Absorption of
information involves performing the following calculations:

(1) Calculate the updated separator potential:

φ∗

S =

(cid:10)

Cj\S

φCj .

(2) Update the clique potential of Ci:

φCi

:= φCi

φ∗
S
φS

.

(3) Associate the updated potential with the separator:

φS = φ∗
S.

After a full round of message passing the potential associated with any
clique (separator) is the joint probability distribution (up to the same normal-
ization constant) of the variables in the clique (separator) and the evidence.
This algorithm is known as the Hugin algorithm. Details on the inference
process can be found in the literature (Lauritzen & Spiegelhalter 1988, An-
dersen, Olesen, Jensen & Jensen 1989, Jensen et al. 1990, Dawid 1992, Jensen
et al. 1994, Lauritzen & Jensen 2001).

ABE

A

E

AW

ER

Fig. 5.10. A junction tree representation T of the Bayesian network depicted in
Figure 5.5 on page 115.

Example 5.8. Figure 5.10 shows a junction tree representation T = (C, S) of
the Bayesian network depicted in Figure 5.5 on page 115 with cliques:

C = {{A, B, E}, {E, R}, {A, W}}

and separators:

S = {{E}, {A}}.

120

5 Solving Probabilistic Networks

B

E

R

A

W

Fig. 5.11. The undirected graph corresponding to Figures 5.6, 5.7 and 5.10.

Notice the similarity between Figure 5.10 and Figures 5.6 and 5.7. The
nodes of Figures 5.6 and 5.7 are clusters (i.e., subsets of variables) whereas the
nodes of Figure 5.10 are cliques (i.e., maximal subsets of pairwise connected
variables) of undirected graphs.

The undirected graph corresponding to a junction tree is obtained by
adding undirected edges between each pair of variables contained in the same
clique or cluster. Figure 5.11 is the undirected graph corresponding to Fig-
ures 5.6, 5.7 and 5.10.

ABE

→3
←1

A

E

←2
→4

AW

ER

Fig. 5.12. Message passing in T.

Figure 5.12 shows how messages are passed over T relative to the root ABE.
Underlying any approach to inference is the junction tree representation,
although its presence may be implicit. Figure 5.6 shows the cluster tree repre-
sentation underlying the computation of P(A) whereas Figure 5.7 shows the
cluster tree representation underlying the computation of P(W). Figures 5.6
and 5.7 are not junction trees, but cluster trees. The cliques of a junction
tree are maximal complete subsets of pairwise connected variables, whereas
clusters are not necessarily maximal.

The quality of the junction tree T = (C, S) determines the eﬃciency of
inference. A common score or criterion to use when considering the optimal-
ity of a junction tree is the maximum state space size over all cliques in T,

5.1 Probabilistic Inference

121

i.e., maxC∈C (cid:15)C(cid:15). Another similar score is the sum over all cliques in T, i.e.,
(cid:6)

C∈C (cid:15)C(cid:15).
All types of probabilistic networks considered in this book may be solved
by message passing in a junction tree representation. However, we will restrict
ourselves from a detailed treatment of this topic for all models presented as
it is beyond the scope of this book.

The approach to inference outlined above may be referred to as an indirect

approach.

5.1.2 Inference in CLG Bayesian Networks

Let N = (X, G, P, F) be a CLG Bayesian network with continuous random
variables, XΓ , and discrete random variables, X∆, such that X = XΓ ∪ X∆.
To solve the probabilistic inference task on N is to compute the marginal
for each X ∈ X. Since N is a CLG Bayesian network the task of performing
inference becomes more subtle than in the case of a pure discrete Bayesian
network.

The prior distribution, P(X), of a discrete variable X ∈ X∆ is equal to the
distribution of X in the discrete network N(cid:2) = (X∆, P) obtained by removing
all continuous variables from the model (all continuous variables are barren
variables with respect to the joint over the discrete variables). The prior den-
sity of a continuous variable Y, on the other hand, will, in general, be a mixture
of Gaussian distributions where the mixing factors are joint probabilities over
conﬁgurations of discrete variables I ⊆ X∆. For each conﬁguration i of I with
non-zero probability, i.e., p(i) > 0, the joint distribution of I and X has the
form

P(I = i) ∗ N(µ(i), σ2(i)).

This implies that the marginal of X ∈ XΓ is

(cid:10)

L(X) =

i:P(I=i)>0

P(i) ∗ N(µ(i), σ2(i)).

For each conﬁguration i of I with P(i) = 0 the mean µ(i) and variance σ2(i)
may be random numbers. Hence, the marginal density function for a contin-
uous variable X ∈ XΓ is, in general, a mixture of Gaussian distributions

f(x) =

n(cid:10)

i=0

αifi(x),

where each component fi is a one-dimensional Gaussian density function in X
and each coeﬃcient αi is the probability of a conﬁguration of discrete vari-
ables. This implies that the marginal density function of X ∈ XΓ is not neces-
sarily a CLG distribution with the indicated mean µ and variance σ2. That is,
the result of a marginalization of a CLG distribution over continuous variables

122

5 Solving Probabilistic Networks

is a CLG distribution whereas the result of a marginalization of a CLG dis-
tribution over discrete variables, in general, is not. The ﬁrst type of marginal
is referred to as a strong marginal, whereas the latter is referred to as a weak
marginal. The marginal is strong as we compute the mean µ and the vari-
ance σ2, and we know the distribution is a CLG distribution.

Probabilistic inference is the task of updating our belief about the state
of the world in light of evidence. Evidence on discrete variables, be it hard or
soft evidence, is treated as in the case of discrete Bayesian networks. Evidence
on a continuous variable, on the other hand, is restricted to be hard evidence,
i.e., instantiations.

In the general case where evidence ε is available, the marginal for a dis-
crete variable X ∈ X∆ is a probability distribution P(X | ε) conditional on the
evidence ε, whereas the marginal for a continuous variable X ∈ XΓ is a density
function f(x | ε) conditional on ε with a mean µ and a variance σ2.

Example 5.9. Example 4.3 on page 72 shows an example of a simple CLG
Bayesian network. Computing the prior probability density in X3 amounts
to eliminating the variables X1 and X2. With the quantiﬁcation speciﬁed in
Example 4.3 this produces the following mixture

L(X3) =0.75 ∗ N (−5, 5.1) + 0.25 ∗ N (5, 5.2)

with mean µ = −2.5 and variance σ2 = 23.88. Notice that the density for X3
is not the density for the Gaussian distribution with mean µ = −2.5 and
variance σ2 = 23.88. The density function is shown in Figure 5.13.

0.14

0.12

0.1

0.08

0.06

0.04

0.02

0
-15

f(X3)

-10

-5

0

5

10

15

Fig. 5.13. The density function for X3.

The prior probability density for X2 and the prior probability distribution
for X1 are trivial to compute as {X2, X3} are barren with respect to the prior
for X1 and similarly {X1, X3} are barren with respect to the prior for X2.

5.1 Probabilistic Inference

123

The above examples illustrates that the class of CLG distributions is not
closed under the operation of discrete variable elimination. The weak marginal
distribution N(µ, σ2) may, however, be used as an approximation of the true
marginal. The weak marginal is the closest non-mixture to the true marginal
in terms of the Kullback–Leibler distance (Lauritzen 1996).

Example 5.10. Consider again the CLG Bayesian network N from Example 4.3
on page 72. Figure 5.13 on the preceding page shows the density function
for X3. Figure 5.14 shows both the density function f(X3) and the weak mar-

0.14

0.12

0.1

0.08

0.06

0.04

0.02

0
-15

f(X3)
g(X3)

-10

-5

0

5

10

15

Fig. 5.14. The density function f(X3) for X3 and its weak marginal g(X3).

ginal g(X3) for X3. It is obvious that the weak marginal is only an approxi-
mation of the exact density function.

Since the CLG distribution is not closed under the operation of discrete
variable elimination and since the operation of discrete variable elimination is
not deﬁned when continuous variables are in the domain of the potential to
be marginalized, it is required that continuous variables are eliminated before
discrete variables. For this reason, when marginalizing over both continuous
and discrete variables, we ﬁrst marginalize over the continuous variables and
then over the discrete variables (Lauritzen 1992b).

This implies that the (exact) solution method for inference in CLG
Bayesian networks induce the partial order X∆ ≺ XΓ on the elimination order.
Hence, the continuous variables XΓ should be eliminated before the discrete
variables X∆. A variable elimination order, which is restricted to induce a cer-
tain (partial) order, is referred to as a strong elimination order. Hence, we use
a strong elimination order to solve a CLG Bayesian network by variable elim-
ination. For this reason, inference in a CLG Bayesian network may be more
resource intensive than inference in a corresponding Bayesian network with
the same structure, but consisting only of continuous random variables. No-
tice that due to independence relations induced by the structure of G = (V, E)

124

5 Solving Probabilistic Networks

of a CLG Bayesian network and the structure of the evidence ε, it may in
some situations be possible to eliminate discrete variables before continuous
variables.

In the special case where the ancestors of v ∈ V are all representing con-
tinuous variables (i.e., an(v) ⊆ VΓ ) forX v ∈ X, the posterior marginal for Xv
is a strong marginal. Otherwise, it is a weak marginal. If the posterior for Xv
is a weak marginal, the density function of Xv is an unknown mixture of
Gaussians, which needs to be computed as part of probabilistic inference.

The normalization constant α computed as part of probabilistic inference is
proportional to the density at the observed values of the continuous variables.
The proportionality constant is P(ε(∆) | ε(Γ )), where ε(∆) is the evidence on
discrete variables and ε(Γ ) is the evidence on continuous variables. In general,
α is scale-dependent and does not make much sense. For instance, the value
of α will be dependent on whether height is measured in meters or centimeters.
If ε only contains discrete variables, then α is the probability of ε.

The presence of both continuous and discrete variables makes the oper-
ations required for performing probabilistic inference in CLG Bayesian net-
works more complicated than those required for performing probabilistic in-
ference in discrete Bayesian networks. For a detailed treatment on inference
in CLG Bayesian networks, see for example Lauritzen (1992b) and Lauritzen
& Jensen (2001).

5.2 Solving Decision Models

We build decision models in order to support eﬃcient reasoning and decision
making under uncertainty in a given problem domain. Reasoning under un-
certainty is the task of computing our updated beliefs in (unobserved) events
given observations on other events whereas decision making under uncertainty
is the task of identifying the (optimal) decision strategy for the decision maker
given observations.

5.2.1 Solving Discrete Inﬂuence Diagrams

Inference in an inﬂuence diagram N = (X, G, P, U) is to determine an optimal
strategy ^∆ = {^δ1, . . . , ^δn} for the decision maker and compute the maximum
expected utility of adhering to ^∆.

The inﬂuence diagram is a compact representation of a joint expected

utility function due to the chain rule

(cid:5)

EU(X) =

P(Xv | Xpa(v))

(cid:10)

w∈VU

u(Xpa(w)).

(cid:6)

Xv∈XC
(cid:6)

Applying the

-rule (Jensen 1996) on the joint expected utility
function, we may solve N by eliminating variables in the reverse order of the

-max-

5.2 Solving Decision Models

125

information precedence order ≺. That is, the precedence relation ≺ induces
a partial order on the elimination of variables in X. This implies that we use
a strong variable elimination order to solve an inﬂuence diagram by variable
elimination.

(cid:6)

(cid:6)

Starting with the last decision Dn, the

-rule says that we should
average over the unknown random variables In, maximize over the deci-
sion Dn, average over the random variables In−1 known to the decision maker
at Dn (but not known to the analyst), maximize over Dn−1, and so on. The
principle is to average over the unknown random variables, maximize over the
decision variable, and ﬁnally average over the observed random variables.

-max-

(cid:6)

(cid:6)

-max-

The intuition behind the application of the

-rule in reverse order
of decisions is as follows. When we consider the last decision Dn its past
is fully observed and the only unobserved variables are the variables never
observed or observed after Dn, i.e., In. Hence, after averaging over In, we can
select a maximizing argument of the utility function u(I(Dn), Dn) for each
conﬁguration of I(Dn) as an optimal decision at Dn. Notice that we select
a maximizing argument for each conﬁguration of the past. In principle, this
eliminates In and Dn from the decision problem and we may consider Dn−1
as the last decision. This implies that when we solve for Dn−1 we assume the
decision maker to act optimally for Dn.

Notice that the variables are observed at the time of decision, but not
(necessarily) at the time of analysis. Whether a random variable is known or
unknown is deﬁned from the point of view of the decision maker, and not the
analyst. In this way we may solve N by computing the maximum expected
utility MEU( ^∆) of the optimal strategy ∆ as

MEU( ^∆) =

=

(cid:10)

I0
(cid:10)

I0

max
D1

max
D1

(cid:10)

I1
(cid:10)

· · ·

max
D2

· · ·

max
D2

(cid:10)

(cid:10)

max
Dn

In

In−1
(cid:10)

EU(X)

max
Dn

I1
(cid:5)

In−1
P(Xv | Xpa(v))

(cid:10)

u(Xpa(w)).

(5.8)

Xv∈XC

Uw∈XU

As part of the process, prior to the elimination of each decision D, we
record the maximizing arguments of D over the utility potential ψ(D, I(D))
from which D is eliminated for each conﬁguration of I(D). From ψ(D, I(D))
we deﬁne the (probabilistic) policy function δ(D | I(D)) for D as
(cid:16)

δ(d | I(D) = i) =

if d = arg maxd(cid:2) ψ(d(cid:2), i),

1
0 otherwise,

where we assume the maximizing argument arg maxd(cid:2) ψ(d(cid:2), i) to be unique.
If it is not unique, then any maximizing argument may be chosen.2

2 As we shall see in Section 5.2.4, the policy function need not be deterministic.

126

5 Solving Probabilistic Networks

Example 5.11 (Oil Wildcatter). To solve the decision problem of the Oil Wild-
catter of Example 4.5 on page 77 is to identify the optimal decision policies for
the test and drill decisions. From the joint expected utility function, EU(X),
over variables X of N = (X, G, P, U), we may compute the maximum expected
utility, MEU( ^∆), of the optimal strategy, ^∆ =
, and in the
process determine the optimal strategy as

(cid:18)
^δD(S, T ), ^δT ()

(cid:17)

MEU( ^∆) = max

T

(cid:10)

(cid:10)

max
D

S

O

P(O)P(S | O, T )(C(T ) + U(D, O)).

Table 5.1 shows the expected utility function over D, S, T from which the
decision policy ^δD(S, T ) is identiﬁed as the maximizing argument of D for
each conﬁguration of S and T . The oil wildcatter should drill for oil unless he
performed the test and obtained a diﬀuse pattern.

D

no
yes
no
yes
no
yes
no
yes
no
yes
no
yes

S

cl
cl
op
op
di
di
cl
cl
op
op
di
di

T

no
0
no
7
no
0
no
7
no
0
no
7
−2.4
yes
yes
18.6
−3.5
yes
yes
8
−4.1
yes
yes −16.6

Table 5.1. The joint expected utility function EU(D, S, T ).

Table 5.2 shows the expected utility function over T from which the de-
cision policy ^δT () is identiﬁed as the maximizing argument of T . Hence, the
test should always be performed.

T

no
yes

21
22.5

Table 5.2. The expected utility function EU(T ).

The decision policies ^δT () and ^δD(S, T ) are already known from Exam-
ple 4.7 on page 79. The maximum expected utility for the decision problem
is 22.5.

5.2 Solving Decision Models

127

Solving an inﬂuence diagram by performing the variable eliminations ac-
cording to Equation 5.8 will be highly ineﬃcient even for simple inﬂuence
diagrams. Instead we will — as in the case of Bayesian networks — apply a
generalized version of the distributive law to increase computational eﬃciency.

For notational convenience, the generalized marginalization operator (cid:6)

was introduced by Jensen et al. (1994). The marginalization operator works
diﬀerently for marginalization of random variables and decision variables:

ρ (cid:1)
(cid:10)

X

(cid:10)

X

ρ and

ρ (cid:1) max
(cid:10)
D

ρ,

D

where X is a random variable while D is a decision variable. We will use
the generalized marginalization operator to explain the process of solving an
inﬂuence diagram, see Madsen & Jensen (1999) for details.

Using a generalized version of the distributive law, the solution of an in-
ﬂuence diagram may proceed as follows. Let Y be the ﬁrst random variable
to eliminate. The set of utility potentials U can be divided into two disjoint
subsets with respect to Y. LetU Y ⊆ U be the subset of utility potentials
including Y in the domain

UY = {u ∈ U | Y ∈ dom(u)}.

Then U \ UY is the set of utility potentials not including Y in the domain.
Similarly, let PY ⊆ P be the subset of probability distributions including Y in
the domain

PY = {P ∈ P | Y ∈ dom(P)}.

Then P \ PY is the set of probability potentials not including Y in the
domain. The elimination process proceeds by local computation in order to
maintain eﬃciency (i.e., we exploit the distributive law to maintain the fac-
torization of the joint expected utility function). Let φY be the probability
potential obtained by eliminating Y from the combination of all probability
potentials in PY and let ψY be the utility potential obtained by eliminating Y
from the combination of all probability and utility potentials in PY ∪ UY such
that

(cid:5)

φY = (cid:10)

Y

φ∈PY

φ,

(cid:10)

ψY = (cid:10)
φY

Y

ψ.

ψ∈UY

(5.9)

The two potentials φY and ψY will be used to enforce the factorization
of the joint expected utility function over X \ {Y}. The factorization may be
achieved by rewriting Equation 5.8 using φY and ψY as well as applying the
distributive law

128

5 Solving Probabilistic Networks

MEU( ^∆) = (cid:10)

X∈X

(cid:18) (cid:5)

φ
(cid:16)(cid:7) (cid:5)

φ∈P

(cid:10)

(cid:19)

ψ

ψ∈U

(cid:5)

φ(cid:2)

φ

(cid:8)(cid:7) (cid:10)

(cid:10)

(cid:8)(cid:17)

ψ(cid:2)

ψ +

= (cid:10)

X∈X

φ∈P\PY
(cid:16)(cid:7) (cid:5)

φ(cid:2)∈PY
(cid:8)

=

=

=

X∈X\{Y}

φ∈P\PY

(cid:16)(cid:7) (cid:5)

X∈X\{Y}

φ∈P\PY

(cid:16)(cid:7) (cid:5)

(cid:10)

(cid:10)

(cid:10)

φ

(cid:7) (cid:5)
(cid:10)
(cid:8)(cid:7)(cid:7) (cid:10)
φ

Y

φ(cid:2)∈PY

(cid:8)

ψ∈U\UY
(cid:7) (cid:10)

φ

φY

X∈X\{Y}

φ∈P\PY

ψ∈U\UY

ψ∈U\UY

ψ(cid:2)∈UY

(cid:8)(cid:7) (cid:10)

(cid:10)

(cid:8)(cid:17)

ψ(cid:2)

ψ +

φ(cid:2)

(cid:8)

ψ∈U\UY
(cid:8)(cid:17)

ψ(cid:2)∈UY

ψ

φY + ψY

(cid:8)(cid:17)

.

ψ + ψY
φY

(5.10)

(5.11)

Equation 5.11 speciﬁes a decomposition of the joint expected utility func-
tion over X\{Y}, and decomposition has the form of Equation 5.8. The decom-
position is the product of the summation over the elements of U \ UY ∪ { ψY
}
φY
and the product over the elements of P \ PY ∪ {φY}. In addition, we have per-
formed the elimination of Y by local computations only involving potentials
with Y as a domain variable. We say that the sets

P \ PY ∪ {φY}

and U \ UY ∪

(cid:19)

(cid:20)

,

ψY
φY

are a value preserving reduction of P and U where Y has been eliminated. The
elimination of the next variable may proceed in the same manner on U \ UY ∪
(cid:17)

(cid:18)

ψY
φY

and P \ PY ∪ {φY}.

The division operation in Equation 5.11 is introduced because the combi-
nation of probability potentials and utility potentials is non-associative. Thus,
either the division should be performed or the probability potentials have to
be distributed over the terms of the utility function as in Equation 5.10.

Example 5.12 (Oil Wildcatter). Utilizing the local computation approach ex-
plained above we may solve the Oil Wildcatter problem as follows
(cid:10)

(cid:10)

EU( ^∆) = max

T

max
D

S

= max

T

(C(T ) +

P(O)P(S | O, T )(C(T ) + U(D, O))

O
(cid:10)

S

P(S) max
D

(cid:10)

O

P(O)P(S | O, T )
P(S)

U(D, O)).

The division by P(S) is necessary in order to obtain the correct conditional
expected utility for D. This division does not eﬀect the policy.

The beneﬁt of the local computation approach is more profound on large

and more complex inﬂuence diagrams.

5.2 Solving Decision Models

129

5.2.2 Solving CLQG Inﬂuence Diagrams

Inference in a CLQG inﬂuence diagram N = (X, G, P, F, U) is similar to in-
ference in a discrete inﬂuence diagram. The task is to determine an optimal
strategy, ^∆ = {^δ1, . . . , ^δn}, for the decision maker and compute the maximum
expected utility of adhering to ^∆.

The inﬂuence diagram is a compact representation of a joint expected

utility function due to the chain rule

EU(X∆ = i, XΓ ) =

(cid:5)

v∈V∆

P(iv | ipa(v)) ∗

(cid:5)

w∈VΓ

p(yw | Xpa(w)) ∗

(cid:10)

z∈VU

u(Xpa(z)).

(cid:6)

(cid:6)

-max-

The solution process for CLQG inﬂuence diagrams follows the same ap-
proach as the solution process for discrete inﬂuence diagrams. The solution
process proceeds by applying an extension of the
-rule (Madsen
& Jensen 2005). The extension is that we need to eliminate the continuous
random variables XΓ by integration as opposed to summation. We refer the
interested reader to the literature for details on the solution process (Kenley
1986, Shachter & Kenley 1989, Poland 1994, Madsen & Jensen 2005).

The optimal strategy ^∆ = {^δ1, . . . , ^δn} will consist of decision policies for
both discrete and continuous decision variables. The decision policy for a
discrete decision variable Di ∈ X∆ ∩ XD is a mapping from the conﬁguration
of its past I(Di) to dom(Di), whereas the decision policy for a continuous
decision variable Dj ∈ XΓ ∩ XD is a multi-linear function in its continuous
past I(Di) ∩ XΓ conditional on its discrete past I(Di) ∩ X∆.

Example 5.13 (Marketing Budget (Madsen & Jensen 2005)). Consider a com-
pany manager has to decide on a unit price, Price, to charge for a certain
item she wants to sell. The number of items sold, Units, is a function of the
price and marketing budget, Budget, whereas the cost of production, Cost, is a
function of the number of items sold. This scenario can be modeled using the
CLQG inﬂuence diagram shown in Figure 5.15 on the following page. Prior
to making the decision on price she will be allocated a marketing budget.

The decision problem may be quantiﬁed as follows where the unit of utility
is thousands of euros. The distributions of items sold and production cost are

L(Units | Budget = b, Price = p) = N(20 + 0.2 ∗ b − 0.1 ∗ p, 25)

L(Cost | Units = u) = N(400 + 10 ∗ u, 2500)

The distribution of marketing budget is

L(Budget) =N(100, 400 ).

The cost function is

and the revenue function is

U2(Cost = c) = −c

130

5 Solving Probabilistic Networks

Budget

U1

Price

Units

Cost

U2

Fig. 5.15. Optimization of price given marketing budget size.

U1(Price = p, Units = u) = u ∗ p.

Figure 5.16 shows the expected utility function as a function of M and P.
The optimal decision policy δP(m) for P is a linear function in M: δP(m) =
105 + m.

15000
10000
5000
0
−5000
−10000

0

50

100

150
Marketing Budget

400

200

300

Price

100

200

250

0

Fig. 5.16. Expected utility as a function of price and marketing budget.

5.2.3 Relevance Reasoning

As mentioned in the previous section, a policy δ for D is a mapping from
past observations and decisions to the possible decision options at D. When

5.2 Solving Decision Models

131

modeling a large and complex decision problem involving a sequence of de-
cisions, the past observations and decisions of a decision may involve a large
set of variables. At the same time, it may be that only a small subset of these
are essential for the decision. Informally speaking, an observation (or deci-
sion) is essential (also known as requisite) for a decision, if the outcome of the
observation may impact the choice of decision option.

Assume we are able to identify and remove non-requisite parents of each
decision. This makes a policy for decision D a function from the requisite
past RP(D) to the decision options such that δ : RP(D) → dom(D). It is not
a trivial task to determine the requisite past of a decision D, i.e., the variables
observed prior to D, whose values have an impact on the choice of decision
option for D (Shachter 1998, Lauritzen & Nilsson 2001, Nielsen 2001).

Deﬁnition 5.4 (Requisite Observation). Let N = (X, G = (V, E), P, U) be
an inﬂuence diagram. The observation on variable Yv ∈ I(Di) is requisite for
decision Di in N if and only if v (cid:7)⊥G VU ∩ de(vi) | (VI(Di) \ {v}), where vi is
the node representing Di.

The solution algorithm will identify some of the non-requisite parents for
each decision, but there is no guarantee that all non-requisite parents will be
identiﬁed and ignored. The implicit identiﬁcation of non-requisite parents is
due to conditional independence properties of the graph.

Similar to the concept of a requisite observation is the concept of a relevant
variable. The set of variables relevant for a decision, D, is the set of variables
observed and the set of decisions made after decision D, which may impact
the expected utility of D.

Deﬁnition 5.5 (Relevant Variable). Let N = (X, G = (V, E), P, U) be an
inﬂuence diagram. A variable Yv ∈ F(Di) is relevant for decision Di if and
only if v (cid:7)⊥G VU ∩ de(vi) | (VI(Di) \ {v}), where vi is the node representing Di.

Using the concepts of relevant variables and requisite observations it is
possible to decompose the structure of an inﬂuence diagram N = (X, G =
(V, E), P, U) into a sub-models consisting only of requisite parents and relevant
variables for each decision in N.

Example 5.14 (Decomposition of Inﬂuence Diagrams (Nielsen 2001)). Con-
sider the inﬂuence diagram shown in Figure 4.10 on page 84. Traversing the
decision variables in reverse order, we may for each decision variable construct
the sub-model consisting of relevant variables and requisite parents only.

We consider the decisions in reverse order starting with D4. The reasoning
proceeds by searching for non-requisite parents of D4. By inspection of the
diagram it becomes clear that G blocks the ﬂow of information from obser-
vations made prior to D4 to the only utility descendant U3 of D4. Hence,
all other parents are non-requisite. Similarly, we identify the set of relevant
variables. Figure 5.17 on the following page shows the DAG induced by the
subset of requisite observations and relevant variables for D4.

132

5 Solving Probabilistic Networks

D4

G

L

U3

I

D2

Fig. 5.17. The DAG induced by the subset of requisite observations and relevant
variables for D4.

F

H

J

K

U4

D3

U2

Fig. 5.18. The DAG induced by the subset of requisite observations and relevant
variables for D3.

Similarly, Figure 5.18 and Figure 5.19 show the DAGs induced by the
subsets of requisite observations and relevant variables for D3 and D2, re-
spectively.

D4

G

L

U3

E

I

D2

Fig. 5.19. The DAG induced by the subset of requisite observations and relevant
variables for D2.

5.2 Solving Decision Models

133

The DAG induced by the subset of requisite observations and relevant

variables for D1 is equal to the DAG shown in Figure 4.10 on page 84.

Decomposing an inﬂuence diagram into its sub-models of requisite ob-
servations and relevant variables for each decision is very useful for model
validation.

5.2.4 Solving LIMIDs

The LIMID representation relaxes the two fundamental assumptions of the
inﬂuence diagram representation. The assumptions are the total order on de-
cisions and the perfect recall of past decisions and observations. These two
assumptions are fundamental to the solution algorithm for inﬂuence diagrams
described above. Due to the relaxation of these two assumptions, the solu-
tion process of LIMIDs becomes more complex than the solution process of
inﬂuence diagrams.

Let N = (X, G, P, U) be a LIMID representation of a decision problem.
The Single Policy Updating (SPU) algorithm is an iterative procedure for
identifying (locally) optimal decision policies for the decisions of N. The basic
idea is to start an iterative process from some initial strategy where the policy
at each decision is updated while keeping the remaining policies ﬁxed until
convergence. The starting point can be the uniform strategy where all options
are equally likely to be chosen by the decision maker.

As mentioned in Chapter 4, a decision policy δDi is a mapping from
the decision past of Di to the state space dom(Di) of Di such that δDi
:
I(Di) → dom(Di). This implies that we may use the probabilistic policy
function δ(cid:2)

(I(Di)) introduced in Section 5.2.1

i(Di | I(Di)) of δDi

δ(cid:2)
i(di | I(Di) = j) =

(cid:16)

1
0

if di = δDi
otherwise.

(j),

This encoding will play a central role in the process of solving a LIMID.

Let N = (X, G, P, U) be a LIMID model with chance and decision vari-
ables XC and XD, respectively. A strategy ∆ = {δD : D ∈ XD} for N induces
a joint probability distribution P∆(X) over X as it speciﬁes a probability dis-
tribution for each decision variable:

P∆(X) =

(cid:5)

Xv∈XC

P(Xv | Xpa(v))

(cid:5)

δ(cid:2)
i.

Di∈XD

(5.12)

The aim of solving N is to identify a strategy, ∆, maximizing the expected
utility

EU(∆) =

(cid:10)

X∈X

P∆(X)U(X) =

(cid:5)

Xv∈XC

P(Xv | Xpa(v))

(cid:5)

(cid:10)

δ(cid:2)
i

u.

Di∈XD

u∈U

134

5 Solving Probabilistic Networks

The SPU algorithm starts with some initial strategy and iteratively up-
dates a single policy until convergence has occurred. Convergence has oc-
curred when no single policy modiﬁcation can increase the expected utility
of the strategy. As mentioned above, a common initial strategy is the uni-
(cid:2)
form strategy ∆ = {δ1
, . . . , δn
i(d) = 1
where δ(cid:2)

(cid:7)Di(cid:7) for each d ∈ dom(Di) and each Di ∈ XD.
Assume ∆ is the current strategy and Di is the next decision to be con-
sidered for a policy update, then SPU proceeds by performing the following
steps

(cid:2)} consisting of uniform policies δ1

, . . . , δn

(cid:2)

(cid:2)

Retract Retract the policy δ(cid:2)

i from ∆ to obtain ∆−i = ∆ \ {δ(cid:2)

i} (i.e., ∆−i is a

strategy for all decisions except Di).

Update Identify a new policy ^δ(cid:2)

i for Di by computing

^δ(cid:2)

i = arg max

δ(cid:2)
i

EU(∆−i ∪ {δ(cid:2)

i}).

Replace Set ∆ = ∆−i ∪ { ^δ(cid:2)

i}.

SPU may consider the decisions in an arbitrary order. However, if the
≺
graph G speciﬁes a partial order on a subset of decisions Di1
· · · ≺ Dim, then these decisions are processed in reverse order, cf. the solution
process of ordinary inﬂuence diagrams.

≺ · · · ≺ Dij

Example 5.15 (Solving Breeding Pigs). To solve the breeding pigs decision
problem of Example 4.13 on page 90 is to identify a strategy consisting of one
policy for each decision on whether or not to treat each pig for the disease.
Using the SPU algorithm described above we may solve the decision problem
by iteratively updating each single policy until convergence has occurred.

The uniform strategy will serve as the initial strategy. Hence, we assign a
uniform policy δi to each decision Di. As there is a total temporal order on
the decisions, we consider them in reverse temporal order.

The SPU algorithm updates the policy of each decision iteratively un-
til convergence. Once convergence has occurred, we have obtained the strat-
egy ∆ = {δD1, δD2, δD3

}, where

δD1

(R1) =

δD2

(R2) =

δD3

(R3) =

(cid:16)

no R1 = unhealthy
no R1 = healthy

(cid:16)

yes R2 = unhealthy
no

R2 = healthy

(cid:16)

yes R3 = unhealthy
no

R3 = healthy

5.2 Solving Decision Models

135

For R2 and R3 the strategy is to treat a pig when the test indicates that
the pig is unhealthy. For R1 no treatment should be performed. Notice that
each policy is only a function of the most recent test result. This implies that
previous results and decisions are ignored.

Probability of Future Decisions

Equation 5.12 speciﬁes a factorization of the joint probability distribution P∆
over X encoded by a strategy ∆. This factorization may be interpreted as a
Bayesian network model. With this interpretation we are able to compute the
probability of future events under the assumption that the decision maker
adheres to the strategy ∆. This property also holds for ordinary inﬂuence
diagrams.

Example 5.16 (Breeding Pigs). In Example 5.15 we identiﬁed a strategy ∆ =
} for the Breeding Pigs problem. Having identiﬁed a strategy,
{δD1, δD2, δD3
the farmer may be interested in knowing the probability of a pig being healthy
when it is sold for slaughtering. This probability may be computed using
Equation 5.12.

The probability of a pig being healthy under strategy ∆ is P∆(H4 = true) =
67.58 whereas the probability of a pig being healthy under the uniform strat-
egy ∆ is P∆(H4 = true) = 70.55. The uniform strategy has a lower maximum
expected utility though.

Minimal LIMIDs

LIMIDs relax the assumption of perfect recall of the decision maker. This
implies that the structure of a LIMID deﬁnes what information is available to
the decision maker at each decision. In addition to specifying what informa-
tion is available to the decision maker, we may perform an analysis of which
information is relevant to each decision.

It is not always obvious which informational links to include in a LIMID
with graph G = (V, E). Sometimes a link (v, w) ∈ E from Xv ∈ XC to Dw ∈ XD
may be removed from the graph G without aﬀecting the policies and the
expected utility of the computed policies. When this is the case, we say that
the link (v, w) (and the parent Xv given by the link) is non-requisite for Dw.
Removing all non-requisite informational links from a LIMID N = (X, G =
(V, E), P, U) produces the minimal reduction Nmin = (X, G = (V, E∗), P, U)
of N. Any LIMID N has a unique minimal reduction Nmin obtained by itera-
tive removal of informational links from non-requisite parents into decisions.
Since removing a non-requisite parent X from decision Di may make an-
other previously requisite parent Y ∈ Xpa(vi) a non-requisite parent, it is
necessary to iteratively process the parent set of each decision until no non-
requisite parents are identiﬁed. If N is an ordinary inﬂuence diagram, it is
suﬃcient to perform a single pass over the decisions starting with the last

136

5 Solving Probabilistic Networks

decision ﬁrst. The reason is that we have a total order on the decisions and
all decisions are extremal (see Deﬁnition 5.6 below).

Optimal Strategies

In order to characterize the conditions under which SPU is guaranteed to ﬁnd
an optimal solution we need to deﬁne the notion of an extremal decision.

Deﬁnition 5.6 (Extremal Decision). Let N = (X, G, P, U) be a LIMID. A
decision variable Di is extremal if and only if

(VU ∩ de(Di)) ⊥G

(cid:5)

j(cid:6)=i

fa(Dj) | fa(Di).

That is, a decision variable is extremal if all other decisions and their
parents are d-separated from the utility descendants of Di given the family
of Di.

A LIMID is soluble if all decisions are extremal. If Di is extremal in N,
then it has an optimal policy. If all policies in ∆ are optimal, then ∆ is an
optimal strategy.

Example 5.17 (Breeding Pigs). The Breeding Pigs network in Figure 4.15 on
page 91 is not soluble as all decisions are non-extremal. This implies that the
local optimal strategy identiﬁed is not necessarily a globally optimal strategy.
Similarly, Figure 4.14 of Example 4.12 on page 90 shows an example of
a non-soluble LIMID N = (X, G = (V, E), P, U). On the other hand, the
LIMID N = (X, G = (V, E \ {(Di, D)}), P, U) is soluble as both Di and Dj
are extremal.

Notice that since any ordinary inﬂuence diagram may be represented as
a limited memory inﬂuence diagram, the SPU solution process may be used
to solve inﬂuence diagrams, see e.g. Madsen & Nilsson (2001). Any ordinary
inﬂuence diagram is a special case of a limited memory inﬂuence diagram.
The LIMID representation of an ordinary inﬂuence diagram will produce an
optimal strategy.

See Lauritzen & Nilsson (2001) for more details on the solution process.

5.3 Solving OOPNs

For the purpose of inference, an object-oriented model is unfolded. The un-
folded network is subsequently transformed into the computational structure
used for inference. This implies that to solve an object-oriented model is equiv-
alent to solving its unfolded network. Hence, from the point of view of inference
there is no diﬀerence between an object-oriented network and a ﬂat network.

Exercises

137

5.4 Summary

In this chapter we have considered the process of solving probabilistic net-
works. As the exact nature of solving a query against a probabilistic network
depends on the type of model, the solution processes of Bayesian networks
and inﬂuence diagrams have been considered separately.

We build Bayesian network models in order to support eﬃcient reasoning
under uncertainty in a given domain. Reasoning under uncertainty is the task
of computing our updated beliefs in (unobserved) events given observations
on other events, i.e., evidence.

We have considered the task of computing the posterior marginal of each
unobserved variable, Y, given a (possibly empty) set of evidence ε, i.e., P(Y | ε).
We have focused on the solution process that computes the posterior marginal
for all unobserved variables using a two-phase message passing process on a
junction tree structure.

We build decision models in order to support eﬃcient reasoning and de-
cision making under uncertainty in a given problem domain. Reasoning un-
der uncertainty is the task of computing our updated beliefs in (unobserved)
events given observations on other events whereas decision making under un-
certainty is the task of identifying the (optimal) decision strategy for the
decision maker given observations.

We have derived a method for solving inﬂuence diagrams by variable elim-
ination. In the process of eliminating variables we are able to identify the
decision policy for each decision. The resulting set of policies is the optimal
strategy for the inﬂuence diagram.

The LIMID representation relaxes the two fundamental assumptions of
the inﬂuence diagram representation. The assumptions are the total order on
decisions and the perfect recall of past decisions and observations. These two
assumptions are fundamental to the solution algorithm for inﬂuence diagrams
described above. Due to the relaxation of these two assumptions, the solu-
tion process of LIMIDs becomes more complex than the solution process of
inﬂuence diagrams.

We have described how the single policy updating algorithm iteratively
identiﬁes a set of locally optimal decision policies. A decision policy is globally
optimal when the decision is extremal.

Finally, an OOPN is solved by solving its equivalent unfolded network.

Exercises

Exercise 5.1. You are confronted with three doors, A, B, and C. Behind
exactly one of the doors there is a big prize. The money is yours if you choose
the correct door. After you have made your ﬁrst choice of door but still not
opened it, an oﬃcial opens another one with nothing behind it, and you are
allowed to alter your choice.

138

5 Solving Probabilistic Networks

(a) Construct a model for reasoning about the location of the prize.
(b) Compute by hand the probability distribution over the location of the

prize given you select door A and the oﬃcial opens door B.

Exercise 5.2. Consider the Asia network shown in Figure 5.20 (see Exam-
ple 4.2 on page 68 for more details).

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 5.20. A graph specifying the independence and dependence relations of the
Asia example.

(a) Determine the set of barren variables for queries

Q1 = (N, {Bronchitis}, {}),
Q2 = (N, {Bronchitis}, {Dyspnoea = yes}),
Q3 = (N, {Bronchitis}, {Dyspnoea = no, X ray = yes}),

where Qi = (N, T, ε) with N denoting the model, T the target, and ε the
evidence set.

(b) Determine the set of nuisance variables for the same queries.

Exercise 5.3. Consider again the Asia network shown in Figure 5.20.

(a) Identify the domain of potentials created by the elimination sequence σ =
(Tub or cancer, Asia, Smoker, Bronchitis, Cancer, X ray, Dyspnoea, Tuberculo-
sis).

(b) Construct a junction tree representation using the elimination order σ.
(c) Compare the answer to (a) with Figure 5.8 on page 117.

Exercise 5.4. Consider the inﬂuence diagram in Figure 4.10 on page 84.

(a) Which variables are relevant for each decision node?
(b) Which observed variables are requisite for each decision node?
(c) Identify the partial order of the chance nodes relative to the decision nodes.
(d) Identify the domains of each decision policy.

Exercise 5.5. Interpret the graph in Figure 4.10 on page 84 as a LIMID.

Exercises

139

(a) Identify the domains of decision policies and compare the results with the

policies identiﬁed in Exercise 5.4(d).
(c) Are any of the decision nodes extreme?

Exercise 5.6. Consider the decision problem in Exercise 5.1.

(a) Calculate the MEU for the ﬁrst choice/decision.
(b) Explain the results of your calculations.
(c) Construct an inﬂuence diagram for this problem, and check if the results

are consistent with your calculations.

(d) What is the optimal policy?

Part II

Model Construction

6

Eliciting the Model

A probabilistic network can be constructed manually, (semi-)automatically
from data, or through a combination of a manual and a data driven process. In
this chapter we will focus exclusively on the manual approach. See Chapter 8
for approaches involving data.

Faced with a new problem, one ﬁrst has to ﬁgure out whether or not
probabilistic networks are the right choice of “tool” for solving the problem.
Depending on the nature of the problem, probabilistic networks might or
might not be a natural choice of modeling methodology. In Section 6.1 we
consider criteria to be fulﬁlled for probabilistic networks to be a suitable
modeling methodology.

A probabilistic network consists of two components: structure and para-
meters (i.e., conditional probabilities and utilities (statements of preference)).
The structure of a probabilistic network is often referred to as the qualitative
part of the network, whereas the parameters are often referred to as its quan-
titative part. As the parameters of a model are determined by its structure,
the model elicitation process always proceeds in two consecutive stages: First,
the variables and the causal, functional or informational relations among the
variables are identiﬁed, providing the qualitative part of the model. Second,
once the model structure has been determined through an iterative process
involving testing of variables and conditional independences, and veriﬁcation
of the directionality of the links, the values of the parameters are elicited.

Manual construction of probabilistic networks can be a labor-intensive
task, requiring a great deal of skill and creativity as well as close communica-
tion with problem domain experts. Two key problems need to be addressed in
the process of establishing the model structure: identiﬁcation of the relevant
variables and identiﬁcation of the links between the variables.

The notion of variables (be they discrete chance or decision variables or
continuous chance or decision variables) plays a key role in probabilistic net-
works. At a ﬁrst glance it might seem like a relatively simple task to identify
the variables of a probabilistic network, but experience shows that this might
be a diﬃcult task. In Section 6.2 we carefully introduce the notion of variables,

144

6 Eliciting the Model

discuss the various types of variables and their roles, and provide a test that
each variable should be able to pass.

In Section 6.3 we discuss the process of eliciting the structure of a prob-
abilistic network for a problem domain, discussing both a basic approach,
utilizing variable classiﬁcation and typical causal relations among these, and
a more elaborate approach based on identiﬁcation of archetypical semantical
substructures.

Although the use of structured approaches to elicitation of model structure
might drastically reduce the risk of misplacing and/or reversing links, model
veriﬁcation ought to be performed before elicitation of model parameters is
initiated. In Section 6.4 we discuss the importance of inspecting the model
structure to verify that the dependence and independence properties encoded
in the structure are reasonable.

Having the structure of the probabilistic network in place, the parame-
ters (conditional probabilities and the utilities (if any)) of the network are
identiﬁed. Quite often this is the most labor-intensive task, as the number
of parameters can be counted in hundreds or even thousands, possibly each
requiring consultation of a domain expert. In Section 6.5 we consider ways in
which the elicitation of the numbers (parameters) can be eased.

In Section 6.6 we make some concluding remarks about the art of con-
structing probabilistic networks by hand, and point out the importance of
being aware of the limitations of models and the conditions and assumptions
under which they are supposed to work. We also stress that an object-oriented
approach, which facilitates a modular model construction approach, should
preferably be used for large models or models with repetitive structures (e.g.,
dynamic models). Finally, we point out that manual model construction is an
iterative process that can be quite labor intensive.

6.1 When to Use Probabilistic Networks

A probabilistic network is a compact and intuitive representation of causal
relations among entities of a problem domain, where these entities are repre-
sented as discrete variables over either ﬁnite sets of mutually exclusive and
exhaustive sets of possible values or as continuous variables deﬁned over a
space ranging from minus inﬁnity to plus inﬁnity.

There are many good reasons to choose probabilistic networks as the mod-
eling framework, including the coherent and mathematically sound handling of
uncertainty and normative decision making, the automated construction and
adaptation of models based on data, the intuitive and compact representa-
tion of cause–eﬀect relations and (conditional) dependence and independence
relations, the eﬃcient solution of queries given evidence, and the ability to
support a whole range of analyses of the results produced, including conﬂict
analysis, sensitivity analysis (with respect to both parameters and evidence),
and value-of-information analysis. There are, however, some requirements to

6.1 When to Use Probabilistic Networks

145

the nature of the problem that have to be fulﬁlled for probabilistic networks
to be the right choice of paradigm for solving the problem.

6.1.1 Characteristics of Probabilistic Networks

To understand the power as well as the limitations of the framework of proba-
bilistic networks, let us brieﬂy discuss the main characteristics of probabilistic
networks. Probabilistic networks are normative, meaning that they provide
answers to queries that are mathematically coherent and in agreement with
a set of fundamental principles (axioms) of probability calculus and decision
theory. There are four ground characteristics that constitute the foundation
of (normative) probabilistic models:
• Graphical representation of causal relations among domain entities (vari-
ables). The notion of causality is central in probabilistic networks, meaning
that a directed link from one variable to another (usually) signiﬁes a causal
relation among the two. For example, in the Chest Clinic model (see Ex-
ample 4.2 on page 68), the directed link from Smoker to Bronchitis indicates
that Smoker is a (possible) cause of Bronchitis.

• Strengths of probabilistic relations are represented by (conditional) prob-
abilities. Causal relations among variables are seldomly deterministic in
the sense that if the cause is present, then the eﬀect can be concluded by
certainty. For example, P(Bronchitis = yes | Smoker = yes) = 0.6 indicates
that among smokers entering the chest clinic 60% suﬀer from bronchitis.
• Preferences are represented as utilities on a numerical scale. All sorts of
preferences that are relevant in a decision scenario must be expressed on a
numerical scale. In a medical scenario, for example, some relevant factors
might be medicine expenses and patient comfort.

• Recommendations are based on the principle of maximal expected utility.
As the reasoning performed by a probabilistic network is normative, the
outcome (e.g., most likely diagnosis or suggested decision) is guaranteed
to provide a recommended course of action that maximizes the expected
utility to the extent that the model is a “true” representation of problem
domain.

6.1.2 Some Criteria for Using Probabilistic Networks

Given the characteristics of probabilistic networks, there are obviously some
problems that can be modeled nicely with probabilistic networks and others
that cannot.

For probabilistic networks to be a good choice of modeling paradigm, there
should normally be an element of uncertainty associated with the problem
deﬁnition, implying a desire to maximize some sort of expected utility.

There are a few problem domains where probabilistic networks might not
be the ideal choice of modeling paradigm. For example, some problems con-
cerning pattern recognition (e.g., recognition of ﬁngerprints), where there are

146

6 Eliciting the Model

no well-understood mechanisms underlying the layout of the pattern, prob-
abilistic networks most probably would not be the ideal choice. Also, if the
cause–eﬀect relations change over time (i.e., there is no ﬁxed structure of
the corresponding probabilistic network), other modeling paradigms might be
considered.

So, we might set up the following criteria to be met for probabilistic net-
works to potentially be a good candidate technology for solving the problem
at hand:

• Well-deﬁned variables. The variables and events (i.e., possible values of the
variables) of the problem domain need to be well-deﬁned. For example, in
many medical problems the set of relevant factors (e.g., headache, fever,
fatigue, abdominal pain, etc.) are well-deﬁned. On the other hand, the
variables that determine whether or not a person likes a painting may not
be well-deﬁned.

• Highly structured problem domain with identiﬁable cause–eﬀect relations.
Well-established and detailed knowledge should be available concerning
structure (variables and (causal) links), conditional probabilities, and util-
ities (preferences). In general, the structure needs to be static (i.e., not
changing over time), although re-estimation of structure (often through
the usage of learning tools; see Chapter 8) can be performed. The values
of the probability parameters of a probabilistic network might be drifting,
in which case, adaptation techniques can be used to update the parameter
values (see Chapter 8).

• Uncertainty associated with the cause–eﬀect relations. If all cause–eﬀect
relations are deterministic (i.e., all conditional probabilities either take
the value 0 or the value 1), more eﬃcient technologies probably exist. In
almost all real-world problem domains there are, however, various kinds
of uncertainty associated with cause–eﬀect mechanisms, be it incomplete
knowledge about the mechanisms, noisy observations (measurement error),
or abstraction of information (e.g., discretization of real-valued observa-
tions).

• Repetitive problem solving. Often, for the (sometimes large) eﬀort invested
in constructing a probabilistic network to pay oﬀ, the problem solved
should be of repetitive nature. A physician diagnosing respiratory dis-
eases, an Internet company proﬁling its customers, and a bank deciding to
grant loans to its customers are all examples of problems that need to be
solved over and over again, where the involved variables and causal mech-
anisms are invariant over time, and only the values observed for (some of)
the variables diﬀer. Although the repetitiveness criterion is characteristic
of many real-world decision problems for which model-based decision sup-
port is well-suited in terms of payoﬀ of investment, there are important
exceptions. Non-repetitive decision problems with high stakes comprise
an important exception to this criterion. Examples include decisions on

6.2 Identifying the Variables of a Model

147

whether or not to establish an oﬀshore oil rig, build a highway bridge,
launch a Mars exploration mission, go to war, etc.

• Maximization of expected utility. For the probabilistic network framework
to be a natural choice, the problem at hand should most probably contain
an element of decision making involving a desire to maximize the expected
utility of a decision.

6.2 Identifying the Variables of a Model

The set of variables of a probabilistic network comprises the cornerstone of
the model. Basically, there are two kinds of variables in probabilistic net-
works, namely chance and decision variables. Chance variables model events
of the problem domain, which are not under control of the decision maker,
whereas decision variables represent precisely the decisions taken by the de-
cision maker.

Variables can be discrete or continuous. Discrete variables take values
from a ﬁnite set of possible values, whereas continuous variables take values
from the set of real numbers. We refer the reader to Section 4.1.2 for details
regarding networks with continuous variables.

6.2.1 Well-Deﬁned Variables

A discrete chance variable of a probabilistic network must represent an ex-
haustive set of mutually exclusive events. That is, all possible values of the
variable must be represented in its state space (exhaustiveness) and no pair
of values from the set must exclude each other (mutual exclusiveness).

Example 6.1. Consider the following sets of events
(1) {heads, tails},
(2) {1, 2, 3}, and
(3) {black or white, black, white}.

Assume that set (1) is meant to describe the set of possible outcomes of a
ﬂip with a coin. Thus, assuming that the coin cannot end up in an upright
position, the set constitutes an exhaustive set of mutually exclusive events
describing the outcomes, and is thus a positive example of a set of possible
states of a variable of a probabilistic network.

Assume that set (2) is meant to describe the outcomes of a roll with
an ordinary die. The events of the set are mutually exclusive, but being non-
exhaustive, set (2) is a negative example of a set of possible states of a variable
of a probabilistic network.

Assume that set (3) is meant to describe the colors of the keys of a piano.
The set of events is exhaustive, but not mutually exclusive, and is thus another
negative example of a set of possible states of a variable of a probabilistic
network.

148

6 Eliciting the Model

In addition to representing an exhaustive set of mutually exclusive events,
a variable of a probabilistic network typically must represent a unique set of
events. This means that, usually, a state of a variable should not be mutually
exclusive with a state of a single other variable. In other words, the state of
a variable should not be given deterministically by the state of a single other
variable. If there are states of two variables, say A and B, that are mutually
exclusive, it most probably means that the two variables should be merged
into one variable having {A, B} as part of its set of states. We shall refer to a
test of a variable for fulﬁllment of this uniqueness property as the uniqueness
test.

Although we usually require variables to pass the uniqueness test, we do
allow (the state of) a variable to be deterministically given by the states of
two (or more) other variables. Consider, for example, the Chest Clinic example
(see Example 4.2), where Tub or cancer depends deterministically on variables
Tuberculosis and Cancer through a logical OR relation. Constraint variables
(see Chapter 7) also depend deterministically on its parent variables. Such
“artiﬁcial” variables can be handy in many modeling situations, for example,
reducing the number of conditional probabilities needed to be speciﬁed or
enforcing constraints on the combinations of states among a subset of the
variables.

Example 6.2. Consider the following candidate variables for a probabilistic
network:

(1) High temperature,
(2) Low temperature,
(3) Error occured, and
(4) No error,
all having state space {no, yes}. Assume that the variables pairwise refer to
the state of the same phenomenon (e.g., temperature of cooling water of a
power plant and state of operation of a particular device of the plant, re-
spectively). Then there are obviously states of variables High temperature and
Low temperature that are mutually exclusive (i.e., High temperature = no im-
plies that Low temperature = yes and vice versa). Obviously, the same problem
pertains to variables Error occured and No error.

New variables, say Temperature and Error, with sets of states {High, Low}
and {Error occured, No error}, respectively, should be deﬁned, and the vari-
ables (1)–(4) should be eliminated.

Finally, a candidate variable of a problem domain needs to be clearly
deﬁned so that everyone involved in the construction or application of the
model (i.e., knowledge engineers, domain experts, decision makers, etc.) knows
the exact semantics of each variable of the model. For example, the vari-
able It will rain tomorrow might not be clearly deﬁned, as there could be open
questions regarding the location of the rain, the amount of rain, the time of
observation of rain, etc.

6.2 Identifying the Variables of a Model

149

To test if a candidate variable, say V, is indeed a proper and useful variable

of the problem domain, it should be able to pass the clarity test:

(1) The state space of V must consist of an exhaustive set of mutually exclu-

sive values that V can take.

(2) Usually, V should represent a unique set of events (i.e., there should be
no other candidate variable of the problem domain a state of which is
mutually exclusive with a state of V). If this principle is violated, the
model most probably should include one or more “constraint” variables
(see Section 7.1.4) to enforce mutual exclusivity.

(3) V should be clearly deﬁned, leaving no doubts about its semantics. In
general, a variable is well-deﬁned if a clairvoyant can answer questions
about the variable without asking further clarifying questions.

Identifying the variables of a problem domain is not always an easy task,
and requires some practicing. Deﬁning variables corresponding to the (physi-
cal) objects of a problem domain is a common mistake made by most novices.
Instead of focusing on objects of the problem domain, one needs to focus on
the problem (possible diagnoses, classiﬁcations, predictions, decisions, etc. to
be made) and the relevant pieces of information for solving the problem.

Example 6.3 (Doors). Consider the task of constructing a probabilistic net-
work for the following decision problem (cf. Exercise 5.1 on page 137):

You are confronted with three doors, A, B, and C. Behind exactly one
of the doors there is a big prize. The prize is yours if you choose the
correct door. After you have made your ﬁrst choice of door but still
not opened it, an oﬃcial opens another one with nothing behind it,
and you are allowed to alter your choice. Now, the question is: Should
you alter your choice?

A small probabilistic network can be constructed for solving the problem, and
which provides exact odds of winning given the two options. By experience,
though, most novices construct models with one variable for each door, instead
of variables modeling the information available and the problem to be solved.
By deﬁning a variable for each door (with each variable having state space
{Prize, No prize}, say), one violates the principle that variables should represent
unique sets of events (unless constraint variables are included), and thus do
not pass the clarity test.

Instead one needs to take a diﬀerent perspective, focusing on the problem

and the available information:

(1) Problem: Where is the prize? This gives rise to a variable, Prize location,
with state space {A, B, C}, corresponding to doors A, B, and C, respec-
tively.

(2) Information 1: Which door did you choose originally? This gives rise to a

variable, say First choice, with state space {A, B, C}.

150

6 Eliciting the Model

(3) Information 2: Which door were opened by the host? This gives rise to a

variable, say Host choice, with state space {A, B, C}.

These variables pass the clarity test.

6.2.2 Types of Variables

•

In the process of identifying the variables it can be useful to distinguish be-
tween diﬀerent types of variables:
• Problem variables: These are the variables of interest; i.e., those for which
we want to compute their posterior probability given observations of values
for information variables (see next item). Usually, the values of problem
variables cannot be observed; otherwise, there would not be any point in
constructing a probabilistic network in the ﬁrst place. Problem variables
(also sometimes called hypothesis variables) relate to diagnoses, classiﬁca-
tions, predictions, decisions, etc. to be made.
Information variables: These are the variables for which observations may
be available, and which can provide information relevant for solving the
problem. Two sub-categories of information variables can be distinguished:
– Background information: Background information for solving a prob-
lem (represented by one or more problem variables) is information that
was available before the occurrence of the problem and that has a causal
inﬂuence on problem variables and symptom variables (see next item),
and are thus usually among the “root” variables of a probabilistic net-
work. For example, in a medical setting, relevant background infor-
mation could include patient age, smoking habits, blood type, gender,
etc.

– Symptom information: Symptom information, on the other hand, can
be observed as a consequence of the presence of the problem, and hence
will be available after the occurrence of the problem. In other words,
problem variables have causal
inﬂuences on its symptoms. Hence,
symptom variables are usually descendants of background and problem
variables. Again, in a medical setting, relevant symptom information
could include various outcomes of clinical tests and patient interviews;
e.g., blood pressure, fever, headache, weight, etc.

• Mediating variables: These are unobservable variables for which poste-
rior probabilities are not of immediate interest, but which play important
roles for achieving correct conditional independence and dependence prop-
erties and/or eﬃcient inference. Mediating variables often have problem
and background variables as parents and symptom variables as children.

Table 6.1 summarizes the typical causal dependence relations for the four

diﬀerent variable classes.

In Example 6.3 there are one problem variable (Prize location) and two
information variables (First choice and Host choice), where First choice repre-
sents a piece of background information, as it was available before the problem

6.2 Identifying the Variables of a Model

151

Type

Causally inﬂuenced by

Background variables None

Problem variables

Background variables

Mediating variables

Background and problem variables

Symptom variables

Background, problem, and mediating variables

Table 6.1. Typical causal dependence relations for diﬀerent variable classes.

occurred, and Host choice represents a piece of symptom information that be-
came available only after the occurrence of the problem and as a consequence
of it.

Example 6.4 (Classiﬁcation). Assume that we wish to construct a probabilistic
network for classifying scientiﬁc papers into the two classes of

(1) books referring to real-world applications of Bayesian networks and
(2) other books.

We identify a problem variable, say Class, with two states, say BN appl books
and Other books. Assume that the classiﬁcation is going to be based on detec-
tion of keywords, where keywords like “Bayesian network”, “Bayes net”, “ap-
plication”, “industrial”, “decision support”, etc. found in a book might indi-
cate reference to real-world applications of Bayesian networks. Then we might
deﬁne an information (symptom) variable for each keyword (or phrase). Each
information variable could be binary; e.g., Boolean, with states 0 (“false”)
and 1 (“true”) indicating if the keyword is absent or present, respectively, in
a particular book). In a more reﬁned version, each information variable could
represent the number of occurrences of the associated keyword, in which case
the variable need several states, say {0, 1 − 5, 5 − 15, > 15}.

Example 6.5 provide a simple example in which the need for a mediating
variable is crucial for achieving correct dependence and independence proper-
ties of a model (and, consequently, to get reliable answers from the model).

Example 6.5 (Insemination (Jensen 2001)). Six weeks after insemination of
a cow, two tests can be performed to investigate the pregnancy state of the
cow: blood test and urine test. We identify pregnancy state as the prob-
lem variable (PS), and the results of the blood and urine tests as informa-
tion (symptom) variables (BT and UT, respectively), where PS has states
{Pregnant, Not pregnant} and variables (BT and UT have states {Positive,
Negative}). As the state of pregnancy has a causal inﬂuence on the outcome
of the tests, we identify an initial model as shown in Figure 6.1. Using d-
separation, we ﬁnd that this model assumes BT and UT to be independent
given information about the state of PS (i.e., P(PS = Pregnant) = 0 or
P(PS = Pregnant) = 1). Assume now that a domain expert (e.g., a veteri-
narian) informs us that this independence statement is false; i.e., the expert

152

6 Eliciting the Model

PS

BT

UT

Fig. 6.1. A model for determining pregnancy state.

expects the outcome of one of the tests to be informative about the outcome
of the other test even if the pregnancy state of the cow is known for sure. As
there are no natural causal mechanisms linking BT and UT that could counter
for the dependence between these two variables, we need to solve the problem
by introducing a fourth (mediating) variable (HS) describing the hormonal
state of the cow, which determines the outcomes of both tests (i.e., HS has a
causal inﬂuence on BT and UT). The resulting model is shown in Figure 6.2,
where BT and UT are dependent (as they should be) even if the state of
pregnancy is known.

PS

HS

BT

UT

Fig. 6.2. A reﬁned model for determining the pregnancy state, reﬂecting the fact
that both tests are indications of the hormonal state, which in turn is an indication
of pregnancy state.

6.3 Eliciting the Structure

We shall consider two structured ways of eliciting the model structure. A
basic approach relies on the natural causal ordering that exist among the four
categories of variables that were discussed in Section 6.2.2. A more reﬁned
approach has been developed by Neil et al. (2000) where model fragments
are identiﬁed by recognizing archetypical relations (known as idioms) among
groups of variables.

6.3.1 A Basic Approach

Given an initial set of variables identiﬁed for a given problem domain, the
next step in the model construction process concerns the identiﬁcation and

6.3 Eliciting the Structure

153

veriﬁcation of (causal) links of the model. As discussed in Section 2.4, main-
taining a causal perspective in the model construction process may prove
valuable in terms of correctly representing the dependence and independence
relations as well as in terms of ease of elicitation of the conditional proba-
bilities of the model. Notice that maintaining a causal perspective is crucial
when constructing inﬂuence diagrams (see Chapter 4).

As discussed in Section 6.2.2, there are four categories of variables of a
probabilistic network: (i) background (information) variables, (ii) problem
variables, (iii) mediating variables, and (iv) symptom (information) variables.
Also, as discussed above, background variables have a causal inﬂuence on
problem variables and symptom variables, and problem variables have a causal
inﬂuence on symptom variables. Mediating variables, if present, are most often
causally inﬂuenced by problem variables and background variables, and they
causally inﬂuence symptom variables. This gives us a typical overall causal
structure of a probabilistic network as shown in Figure 6.3.

Background variables

Problem variables

Mediating variables

Symptom variables

Fig. 6.3. Typical overall causal structure of a probabilistic network.

Notice that the structure of the chest-clinic example on page 68 ﬁts nicely
with this overall structure of a probabilistic network, where Asia and Smoker
are background variables, Tuberculosis, Cancer, and Bronchitis are problem
variables, Tub or cancer is a mediating variable, and X ray and Dyspnoea are
symptom variables.

Example 6.6 (Doors, continued). For the decision problem of Example 6.3 on
page 149 we identiﬁed First choice as a background variable, Prize location
as a problem variable, and Host choice as a symptom variable. Obviously,
First choice has no inﬂuence on Prize location (i.e., no cheating by the host).
Also, clearly, the choice of the host depends on your initial choice (First choice)
as well as on the host’s private information about the location of the prize
(Prize location). Thus, following the overall structure in Figure 6.3, we arrive
at a structure for the problem as shown in Figure 6.4.

154

6 Eliciting the Model

First choice

Prize location

Host choice

Fig. 6.4. Causal structure for the prize problem.

Example 6.7 (Classiﬁcation, continued). In Example 6.4 on page 151 we
have one problem variable Class and a number of symptom variables, say
Bayesian network, Bayes net, application, industrial, decision support, etc. Ac-
cording to the overall structure in Figure 6.3, we get a network structure as
displayed in Figure 6.5.

Class

Bayesian network

Bayes net

application

. . .

Fig. 6.5. Structure of the model for the classiﬁcation problem of Example 6.4.

6.3.2 Idioms

Neil et al. (2000) have developed an approach to elicitation of model struc-
ture, which is based on describing the semantics and syntax of ﬁve commonly
occurring substructures (called idioms), representing diﬀerent modes of un-
certain reasoning. These ﬁve idioms are believed to cover the vast majority, if
not all, substructures that can occur in a Bayesian network. Each idiom can
be considered an archetypical set of relations among a set of variables. Thus,
the use of idioms encourages the knowledge engineer to think in terms of se-
mantical relations among a (small) group of variables rather than in terms of
nodes and links. The modeling paradigm is thus moved to a higher level of ab-
straction, leaving details about which links to include and their directionality
to be handled automatically through the predeﬁned structures of the idioms.

The ﬁve idioms are:

(1) Deﬁnitional/synthesis: Models the combination of variables into a sin-
gle variable, including deterministic or uncertain deﬁnition/function of a
variable in terms of other variables.

6.3 Eliciting the Structure

155

(2) Cause–consequence: Models cause–eﬀect mechanisms (causal processes).
(3) Measurement: Models the uncertainty associated with an observation or

measurement.

(4) Induction: Models inductive reasoning based on observations from similar

entities to infer something about an unobserved entity.

(5) Reconciliation: Models the reconciliation of results from competing state-

ments that arise from diﬀerent sources of information.

Let us consider some examples on the use of the idioms, all taken from the
problem domain of risk assessment in software development processes (Neil
et al. 2000).

Example 6.8 (Deﬁnitional/synthesis idiom (Neil et al. 2000)). The quality of
software testing is deﬁned in terms of the experience of the tester, the eﬀort
put into the testing process, and the coverage of the test (i.e., how many
modules of the software system is tested). A sub-model implementing this
deﬁnition of testing quality as an instance of the deﬁnitional/synthesis idiom
is shown in Figure 6.6.

Experience

Eﬀort

Coverage

Quality

Fig. 6.6. Sample instantiation of the deﬁnitional/synthesis idiom (Neil et al. 2000).

Example 6.9 (Cause–consequence idiom (Neil et al. 2000)). Both problem dif-
ﬁculty and supplier quality have causal impacts on the number of failures in
a software product. The three variables, Diﬃculty, Supplier, andFailures, com-
prise a sub-model implemented as a join of two instantiations of the cause–
consequence idiom, as illustrated in Figure 6.7.

Diﬃculty

Supplier

Failures

Fig. 6.7. Sample instantiation of the cause–consequence idiom (Neil et al. 2000).

156

6 Eliciting the Model

One might argue that in Example 6.8 Experience, Eﬀort, and Coverage are
all causes of Quality, and hence these four variables comprise a sub-model
implemented as a join of three instantiations of the cause–consequence idiom.
Also, in Example 6.9, one might argue that variable Failures is deﬁned in terms
of (or is a synthesis of) variables Diﬃculty and Supplier, and hence should give
rise to a sub-model implemented as an instance of the deﬁnitional/synthesis
idiom. Which of the two idioms is chosen, however, is immaterial and depends
on how the model constructor perceives the relations among the variables.

Example 6.10 (Measurement Idiom (Neil et al. 2000)). The number of defects
in a software system can only be estimated up to a certain accuracy. Still,
however, the true number of defects is the important variable in assessing the
risk of employing the system. Hence, based on the observed number of defects
(Detected defects), we need to estimate the true number (Inserted defects). In
doing that we need to known the accuracy of the testing procedure applied.
This is a classical example of an instantiation of the measurement idiom, as
illustrated in Figure 6.8.

Inserted defects

Accuracy

Detected defects

Fig. 6.8. Sample instantiation of the measurement idiom (Neil et al. 2000).

Example 6.11 (Induction Idiom (Neil et al. 2000)). Assume that information
is available on the competence of a software testing organization on two pre-
vious occasions, where the organization tested non-critical software products.
Given this information and a measure on the similarity of these previous soft-
ware products with a safety-critical software product, we wish to estimate
the competence of the organization in testing the safety-critical product. In
other words, we wish to induce the competence from previous competences
on similar tasks. This induction problem is implemented as an instantiation
of the induction idiom, as illustrated in Figure 6.9.

Example 6.12 (Reconciliation Idiom (Neil et al. 2000)). Statements about
fault tolerance of a software system can be derived either through a cause–
consequence relation, where the quality of the software development process
has a causal inﬂuence on the fault tolerance of the system, or through a deﬁni-
tional relation involving the contributions of various fault tolerance strategies
such as error checking and error recovery mechanisms. Thus, if two such com-
peting submodels provide statements about fault tolerance, we need to rec-
oncile the two statements. Figure 6.10 shows how this problem can be solved

6.3 Eliciting the Structure

157

Hist comp

Similarity

Comp 1

Comp 2

Competence

Fig. 6.9. Sample instantiation of the induction idiom (Neil et al. 2000).

through an instantiation of the reconciliation idiom, where Reconciliation is
a binary variable with states on and oﬀ that forces P(Fault tol 1 | ε) and
P(Fault tol 2 | ε) to be identical whenever Reconciliation = on, i.e.,

P(R = on | F1, F2) =

(cid:19)

1 whenever F1 = F2
0

otherwise,

where F1, F2, and R are abbreviations for, respectively, Fault tol 1, Fault tol 2,
and Reconciliation. Assume that dom(F1) = dom(F2) = {high, low} and that

Process quality

Err checking

Err recovery

Fault tol 1

Fault tol 2

Reconciliation

Fig. 6.10. Sample instantiation of the reconciliation idiom (Neil et al. 2000).

before reconciliation has taken place (i.e., R has not been instantiated) we
have

P(F1 = high | ε) = 0.7

P(F2 = high | ε) = 0.8.

Using Bayes’ rule (Equation 3.11), we then get

158

6 Eliciting the Model

P(F1 = high | R = on, ε)

= P(F1 = high, R = on | ε)

P(R = on | ε)

= P(R = on | F1 = high, F2 = high)P(F1 = high | ε)P(F2 = high | ε)

P(R = on | ε)
+ P(R = on | F1 = high, F2 = low)P(F1 = high | ε)P(F2 = low | ε)
P(R = on | ε)
= 1 · P(F1 = high | ε)P(F2 = high | ε) + 0 · P(F1 = high | ε)P(F2 = low | ε)

(cid:6)

F1,F2 P(R = on | F1, F2)P(F1 | ε)P(F2 | ε)
P(F1 = high | ε)P(F2 = high | ε)
P(F1 = high | ε)P(F2 = high | ε) + P(F1 = low | ε)P(F2 = low | ε)

.

=

(Note that with the last expression being symmetrical in F1 and F2, we get
(as expected) P(F1 = high | R = on, ε) = P(F2 = high | R = on, ε).) Now, with
P(F1 = high | ε) = 0.7 and P(F2 = high | ε) = 0.8, we get

P(F1 = high | R = on, ε) = P(F2 = high | R = on, ε) = 0.903.

That is, the reconciliation model reinforces both statements whenever the
statements support each other; i.e., if P(F1 = high | ε) > 1
2 and P(F2 =
high | ε) > 1

2 , then

P(Fi = high | R = on, ε) > max{P(F1 = high | ε), P(F2 = high | ε)}

for i = 1, 2. Similarly, with the above sample values for P(F1 = high | ε) and
P(F2 = high | ε),

P(Fi = low | R = on, ε) < min{P(F1 = low | ε), P(F2 = low | ε)}

for i = 1, 2.

Some remarks concerning the feasibility of the reconciliation idiom are in
order. As shown in Example 6.12 on page 156, the model reinforces state-
ments supporting each other. That is, the posterior probability (i.e., after
reconciliation) of a statement is greater (less) than the prior probability of
the statement if the prior probability of each of the contributing statements
is greater (less) than 1
2 . In applications like the one sketched in Example 6.12,
this might make perfect sense, as two diﬀerent sources of information form
the bases of the two statements about fault tolerance; i.e., one is based on
an assessment of process quality, and another on the extent to which errors
have been checked for and the ability of the system to recover from errors.
Thus, whenever two such independent statements about the fault tolerance of
a system both point in the same direction there is reason to believe that the
combined statement is stronger than each individual statement.

Care should be taken, however, not to apply the reconciliation model in
cases where the contributing/competing statements are based on the same

6.4 Model Veriﬁcation

159

source of information. Consider, for example, the statements from two, other-
wise independent, astronomers about the risk of an asteroid hitting the Earth.
If each of them state that the risk of collision is 10%, it would deﬁnitely be a
mistake to conclude that the risk then would be only 1.2%, which would be
the result of applying the reconciliation model in this case! In Section 7.2.2 we
shall present a model for dealing with competing statements that are based
on the same source of information.

The basic structures of the idioms are illustrated in Figure 6.11. Notice
that these basic structures can be combined into more complex structures. For
example, parents in a deﬁnitional/synthesis idiom can be a child in another
deﬁnitional/synthesis idiom etc., breaking down a deﬁnitional/synthesis idiom
with many parents into a hierarchy through a parent divorcing process (see
Chapter 7). Also, basic cause–consequence idioms are typically combined into
more complex structures where causes have common eﬀects and eﬀects have
common causes.

Also notice that depending on whether or not a root variable of an idiom is
a root variable of the overall model structure it may be categorized as either a
background variable, a problem variable, or a mediating variable. Similarly, a
non-root variable of an idiom may be a problem variable, a mediating variable,
or a symptom variable of the overall model. For example, in the induction
idiom of Figure 6.9 on page 157, variables Hist comp and Similarity could
typically be characterized as background variables, Comp 1 and Comp 2 as
symptom variables, and Competence as a problem variable.

Probably the most frequent idiom used is the cause–consequence idiom.
Thus, in determining the “right” idiom to use it might be advisable to start
considering whether the relations among the subset of variables under con-
sideration are best described using one or more cause–consequence relations.
Also, the measurement, induction and reconciliation idioms all deal with as-
sessments of some sort. Therefore, another relevant question to ask is whether
the relations among the variables under consideration describe some sort of
assessment. As a guide to choosing the right idiom one might consult the
ﬂowchart in Figure 6.12.

6.4 Model Veriﬁcation

Proper use of idioms or identiﬁcation and categorization of variables as back-
ground variables, problem variables, symptom variables, and mediating vari-
ables and adhering to the overall causal structure in Figure 6.3 reduces the
typical error of letting links (arrows) point from symptom variables to prob-
lem variables. If, however, a model contains links that point from eﬀects to
causes, inspection of the dependence and independence properties represented
by the model will often reveal a problem caused by the reversed links.

Example 6.13. Consider the following three Boolean variables (i.e., having
state space {false, true}):

160

6 Eliciting the Model

Deﬁnitional/synthesis

Cause–consequence

Term1

Term2

· · ·

Termn

Cause

Synthesis

Consequence

Measurement

Reconciliation

True value

Accuracy

Statement1

Statement2

Obs value

Reconciliation

Induction

Pop parameter

Context diﬀ

Attribute1

Attribute2

· · ·

Attributen

Fig. 6.11. The ﬁve basic kinds of idioms deﬁned by Neil et al. (2000).

• Two PCs: Two or more PCs have been bought within a few days using the

same credit card.

• Card copied: The credit card has been used at almost the same time at

diﬀerent locations.

• Fraud: The credit card has been subject to fraud.

Now the question is if Model A in Figure 6.13(a) is correct or Model B in
Figure 6.13(b) is correct. Experience shows that most novices tend to prefer
Model A, probably based on the notion that “input” leads to “output” (i.e.,
observations imply a hypothesis). That is, given the two pieces of information
that the credit card has been used to buy two or more PCs within a few
days and that the card has been used almost at the same time at diﬀerent

yes

Cause–
consequence
idiom

Focus on
causing
some-
thing?

yes

Deﬁnition/
Synthesis
idiom

yes

Induction id-
iom

no

Focus on
deﬁning
some-
thing?

yes

Using
past ex-
peri-
ence?

yes

6.4 Model Veriﬁcation

161

no

Focus

on

as-

sess-
ment?

no

no

Think again

Reconcil-
iating dif-
ferent pre-
dictions/
views?

no

Reconciliation
idiom

Measurement
idiom

Fig. 6.12. Choosing the right idiom (Neil et al. 2000).

Two PCs

Card copied

Fraud

Fraud

(a)

Two PCs

Card copied

(b)

Fig. 6.13. Two competing models for Example 6.13.

162

6 Eliciting the Model

locations (the input), we can conclude that the card has been subject to fraud
(the output). According to Model A, however, information about Two PCs
(Card copied) does not provide us with any information about Card copied
(Two PCs) when no information is available about Fraud. This is obviously
incorrect, as one piece of evidence conﬁrming (or disconﬁrming) fraud would
obviously make us believe more (or less) in observing the other symptom of
fraud. Based on Model A we would thus get wrong posterior probabilities. No-
tice also that Model A does not have the typical causal structure as displayed
in Figure 6.3, as we identify Fraud as the problem variable and Two PCs and
Card copied as information (symptom) variables.

Model B, on the other hand, rightfully tells us that

• Two PCs and Card copied are dependent when we have no hard evidence
on Fraud: Observing Two PCs (Card copied) will increase our belief that
we will also observe Card copied (Two PCs), and

• Two PCs and Card copied are independent when the state of Fraud is
known: If we know that we are considering a case of fraud, then observing
Two PCs (Card copied) will not change our belief about whether or not we
are going to observe Card copied (Two PCs).

As this example shows, close inspection of the dependence and independence
relations of a model may reveal links pointing in the wrong direction. However,
adherence to the overall causal structure of Figure 6.3, would eliminate the
possibility of arriving at Model A.

Using the idiom approach to structure elicitation in this case, one would
have to decide whether to use the deﬁnitional/synthesis idiom or the cause–
consequence idiom (the measurement, reconciliation, and induction idioms
would be readily rejected). The deﬁnitional/synthesis idiom would make Fraud
be deﬁned in terms of Card copied and Two PCs, which would be awkward.
For one thing, such a deﬁnition would be open-ended, as the are an unlimited
number of ways in which a credit card can be abused. Another, more con-
vincing, argument why the deﬁnitional/synthesis idiom is the wrong choice is
that it violates the overall causal structure of Figure 6.3.

Despite its simplicity, Example 6.13 shows that it might be beneﬁcial to
combine the idiom approach and the basic approach to structure elicitation.
In other words, keeping in mind the overall causal structure of Figure 6.3
might be helpful when a choice of idiom has to be made.

As illustrated in Example 6.5 on page 151, model veriﬁcation may reveal
a need to introduce additional (mediating) variables. The mediating variable,
HS, of Figure 6.2 is a common cause of variables BT and UT. Identiﬁcation
of such common causes most often requires a close collaboration between
a problem domain expert and a knowledge engineer, as the domain expert
often lacks the ability to read the dependence and independence properties
displayed by a network structure and the knowledge engineer lacks insight into
the causal mechanisms among the variables of problem domain. As illustrated

6.5 Eliciting the Numbers

163

in the pregnancy example, failure to identify such hidden common causes (i.e.,
causes for which we have neither any immediate interest in their probability
distributions nor any (easy) way of observing their states) may lead to models
that provide wrong answers. In the case of the pregnancy model, exclusion
of the variable HS would make the model exaggerate the inﬂuence from BT
and UT when both are observed, as they are both indicative of the same
phenomenon, namely a possible change in the hormonal state of the cow.

6.5 Eliciting the Numbers

Once the structure of the probabilistic network has been established — prob-
ably through an iterative process involving model veriﬁcation and model re-
visions, including identiﬁcation of new variables, deletion and redeﬁnition of
existing variables, and addition, deletion, and reversal of links — the next and
usually the most diﬃcult phase of constructing a probabilistic network con-
cerns the elicitation of the quantitative information, including (conditional)
probability distributions and utilities (jointly referred to as the “numbers” or
the “parameters”).

Due to the (most often) quite demanding eﬀort involved in eliciting the
numbers, it is important to carefully verify the structure of the model before
proceeding to the quantitative part of the model construction. Otherwise,
one runs the risk of having to reject or alter already elicited numbers, as the
kind of numbers required are dictated by the model structure. Also, eliciting
conditional probabilities with causal links reversed may be diﬃcult and prone
to errors. In practice, however, minor model structure adjustments are often
made during the number elicitation process (e.g., to reduce the number of
parameters).

The quantitative information of a probabilistic network (often referred to
as the parameters of the model) is represented as real numbers in conditional
probability tables (CPTs) and utility tables (UTs). CPTs represent (con-
ditional) probability distributions with domains spanning the interval [0; 1],
whereas UTs represent utility functions with domains spanning ] − ∞; ∞[.

The parameters of a probabilistic network can be retrieved from databases,
elicited from (subjective) domain expert knowledge (e.g., from literature or
interviews of domain experts), or established through a mathematical model
(e.g., based on assumptions that a given probabilistic distribution can be
approximated through a mixture of two Normal distributions). In this section,
we shall focus only on the latter two approaches; see Chapter 8 for learning
probability parameters from data.

6.5.1 Eliciting Subjective Conditional Probabilities

Part of the reason why elicitation of values of probability parameters can be
rather demanding is that human reasoning is seldomly based on probabilities.

164

6 Eliciting the Model

In other words, a domain expert might ﬁnd it awkward to express her domain-
speciﬁc knowledge in terms of conditional probabilities and utility values.
Thus, diﬀerent indirect ways of eliciting the quantitative knowledge may be
used.

The fact that small diﬀerences in the values of probability (or utility) para-
meters often make no diﬀerence in the recommendations provided by a model
allows for parameter elicitation methods based on qualitative approaches. A
qualitative approach often makes the domain expert more comfortable specify-
ing her knowledge about strengths of causal relations and relative preferences
associated with decision problems.

An example of a qualitative approach for assessing subjective probabilities
include the usage of a so-called probability wheel. A probability wheel is a circle
subdivided into n pie wedges, where n equals the number of possible states
of the variable for which a (conditional) probability distribution is requested.
The domain expert then estimates a probability for a particular state by sizing
the corresponding pie wedge to match her best assessment of that probability.

Example 6.14 (Probability Wheel). A climate researcher asked to provide an
estimate of the increase in the average global temperature over the next 100
years might use a probability wheel as shown in Figure 6.14, working with a
granularity of < 2◦C, 2–5◦C, and > 5◦C.

0.33

0.22

2–5◦C

< 2◦C

> 5◦C

0.44

Fig. 6.14. Probability wheel with three pie wedges corresponding to three states
of a variable representing the increase in the average global temperature over the
next 100 years. The relative area occupied by a particular pie wedge represents the
(conditional) probability for the associated state (indicated by the numbers next to
the pie wedges).

Another example of a qualitative approach is the use of verbal statements
like “very unlikely” or “almost certain” that are then mapped to probabilities
(see Figure 6.15). The use of such a limited set of verbal statements often
makes it quite a lot easier for the domain expert to provide assessments of
(conditional) probabilities.

6.5 Eliciting the Numbers

165

1
0.95
0.9

0.8

Certain
Almost certain
Very probable

Probable

0.5

Fifty-ﬁfty

0.2

0.1
0.05
0

Not probable

Unlikely
Very unlikely
Impossible

Fig. 6.15. Mapping of verbal statements of probability to probabilities.

A simple gamble-based approach can be used for assessing the value of a
probability parameter. Assume that a domain expert is asked to assess the
conditional probability that X = x when Y = y; i.e., P(X = x | Y = y). An
indirect way of making the expert assess this quantity would be to ask the
expert to choose an n, where0 ≤ n ≤ 100, such that she ﬁnds the following
two gambles equally attractive:

(1) If X attains the value x when Y = y, you receive $10.
(2) If you draw a red ball from an urn with n red balls and 100 − n white

balls, you receive $10.

If all balls are red, she prefers Gamble 2, and if all balls are white, she prefers
Gamble 1. The n for which she ﬁnds the two gambles equally attractive is her
estimate of 100 ∗ P(X = x | Y = y); i.e., P(X = x | Y = y) = n/100.

To reduce the parameter elicitation burden, it is advisable to perform the

elicitation of probability parameters in a two-step process:

(1) quickly provide rough initial parameter estimates, and then
(2) perform sensitivity analysis (see Chapter 10) to identify parameter assess-
ments that need to be made with care, as small variations can have a large
impact on the posterior probability of problem variables given evidence.

The second step should probably be repeated, as the careful assessment of the
critical parameters might reveal new critical parameters, etc.

See, for example, Renooij (2001) for a more in-depth discussion of the

issues related to elicitation of probabilities for probabilistic networks.

166

6 Eliciting the Model

6.5.2 Eliciting Subjective Utilities

Similar to the gamble-based approach for eliciting subjective conditional prob-
abilities, we deﬁne a gamble-based approach for eliciting subjective utilities.
Assume that we have the ordering (a1, . . . , an) of outcomes to which we
need to assign subjective utilities, where the outcomes are ordered from worst
to best. We ﬁrst assign a utility of 0 to the worst outcome and a utility of 1
to the best outcome. So

U(a1) = 0

U(an) =1.

Then we consider gambles (or lotteries) Lp in which we get the best outcome
(an) with probability p and the worst outcome (a1) with probability 1 − p.
The utility of an outcome ai (i = 2, . . . , n − 1) is then deﬁned to be the
expected utility of Lp for which we are indiﬀerent between playing the gamble
and getting the outcome ai for sure. Thus,

U(ai) =EU (Lp)

= p · U(an) + (1 − p) · U(a1)
= p.

In other words, the probability, p, for which we are indiﬀerent between the
gamble and getting ai for sure is our utility for ai.

6.5.3 Specifying CPTs and UTs Through Expressions

Probability distributions and utility functions in probabilistic networks often
follow (at least approximately) certain functional or distributional forms. In
such cases the CPTs/UTs can be described compactly through mathematical
expressions. Apart from ease of speciﬁcation, speciﬁcation through expressions
also makes maintenance and reuse much easier.

An expression may be built using standard statistical distributions (e.g.,
Normal, Binomial, Beta, Gamma, etc.), arithmetic operators, standard math-
ematical functions (e.g., logarithmic, exponential, trigonometric, and hyper-
bolic functions), logical operators (e.g., and, or, if-then-else), and relations
(e.g., less than, equals).

The diﬀerent operators used in an expression have diﬀerent return types
and diﬀerent type requirements for arguments. Thus, in order to provide a rich
language for specifying expressions, it is convenient to have a classiﬁcation of
the discrete chance and decision variables into diﬀerent groups:

• Labeled variables have state spaces of arbitrary qualitative descriptors pro-
vided in the form of character strings. Labeled variables can be used in
equality comparisons and to express deterministic relationships. For ex-
ample, a labeled variable C1 with states state 1 and state 2 can appear in

6.5 Eliciting the Numbers

167

an expression like if(C1 = state 1, Distribution(0.2, 0.8), Distribution
(0.4, 0.6)) for P(C2 | C1), where C2 is another discrete chance variable with
two possible states and where if(p, a, b) is read as if predicate p is true,
then a else b.

• Boolean variables represent the truth values “false” and “true” (in that
order) and can be used in logical operators. For example, for a Boolean
variable, B0, being the logical OR of its (Boolean) parents, B1, B2, and
B3, P(B0 | B1, B2, B3) can be speciﬁed simply as or(B1, B2, B3).

•

• Numbered variables represent increasing sequences of numbers (integers or
reals) and can be used in arithmetic operators, mathematical functions,
etc. For example, a numbered variable with state space {1, 2, 3, 4, 5, 6} can
represent the outcome of the roll of a die.
Interval variables represent disjoint intervals on the real line and can
be used in the same way as numbered variables. In addition, they can
be used when specifying the intervals over which a continuous quantity
is to be discretized. For example, an interval variable with state space
{]0; 2], ]2; 5], ]5; 10]} may represent the increase in the average global tem-
perature over the next 100 years (cf. Example 6.14 on page 164).

Table 6.2 shows some examples of possible states of the various subtypes

of discrete chance variables.

Subtype

Sample states

red, blue, low
false, true

Labeled
Boolean
Numbered −∞, . . . , −2.2, −1.5, 0, 1, 2, 3, . . . , ∞
Interval

] − ∞; −10], ] − 10; −5], ] − 5; −1]

Table 6.2. Examples of possible states of the various subtypes of discrete chance
variables.

Based on the semantics of discrete chance nodes provided by the above
subtyping an algorithm for automatic generation of CPTs and UTs can be
implemented. The functionality of such a table generator will be dependent on
the subtypes of the variables involved. Table 6.3 shows how the functionality
of a table generator algorithm might be dependent on variable subtypes.

Example 6.15 (Number of People (Hugin 2006)). Assume that in some appli-
cation we have probability distributions over the number of males and females,
where the distributions are deﬁned over intervals ]0; 100], ]100; 500], ]500; 1000],
and that we wish to compute the distribution over the total number of individ-
uals given the two former distributions. (Note that this an obvious sample us-
age of the deﬁnitional/synthesis idiom presented in Section 6.3.2 on page 155.)
It is a simple but tedious task to specify P(NI | NM, NF), whereN I, NM, and
NF stand for the number of individuals, the number of males, and the number

168

6 Eliciting the Model

Operation

Labeled Boolean Numbered

Interval Utility

if-then-else
Arithmetic operators
Boolean operators
Boolean comparison
Boolean distributions
Continuous distributions
Discrete distributions
Custom distribution

+

+

+

+
+
+

+
+

+

+
+

+
+

+

Table 6.3. The functionality of a table generator algorithm is dependent on the
subtype of the involved variables.

of females, respectively. A much more expedient way of specifying this con-
ditional probability distribution would be to let NM and NF be interpreted
as interval variables with states ]0; 100], ]100; 500], and ]500; 1000], and to let
NI be interpreted as an interval variable with states ]0; 200], ]200; 1000], and
]1000; 2000], for example, and then deﬁne P(NI | NM, NF) through the sim-
ple expression NI = NM + NF. The alternative would require speciﬁcation
(including computation) of 27 probability parameters; see Table 6.4.

NF

NM

]0; 200]

]200; 1000]

]1000; 2000]

NI

]0; 100]
]0; 100]
]0; 100]
]100; 500]
]100; 500]
]100; 500]
]500; 1000]
]500; 1000]
]500; 1000]

1
0.1248
0
0.1248
0
0
0
0
0
Table 6.4. The CPT for P(NI | NM, NF) in Example 6.15 generated from the ex-
pression NI = NM + NF.

]0; 100]
]100; 500]
]500; 1000]
]0; 100]
]100; 500]
]500; 1000]
]0; 100]
]100; 500]
]500; 1000]

0
0.8752
0.8960
0.8752
1
0.4
0.8960
0.4
0

0
0
0.1040
0
0
0.6
0.1040
0.6
1

Example 6.16 (Fair or Fake Die (Hugin 2006)). Consider the problem of com-
puting the probabilities of getting n sixes in n rolls with a fair die and a fake
die, respectively. A random variable, X, denoting the number of sixes obtained
in n rolls with a fair die is binomially distributed with parameters (n, 1/6).
Thus, the probability of getting k sixes in n rolls with a fair die is Pfair(X = k),
where Pfair is a Binomial(n, 1/6). Assuming that for a fake die the probability
of six pips facing up is 1/5, the probability of getting k sixes in n rolls with
a fake die is Pfake(X = k), where Pfake is a Binomial(n, 1/5).

6.5 Eliciting the Numbers

169

A model of this problem is shown in Figure 6.16, where #6 (cid:2)s depends
on #rolls and Fake die?. Now, if we let #rolls be interpreted as a numbered
variable with state space {1, 2, 3, 4, 5}, let Fake die? be interpreted as a Boolean
variable, and let #6 (cid:2)s be interpreted as a numbered variable with state space
{0, 1, 2, 3, 4, 5}, then P(#6 (cid:2)s | #rolls, Fake die?) can be speciﬁed elegantly using
the expression

P(#6 (cid:2)s | #rolls, Fake die?) = Binomial(#rolls, if(Fake die?, 1/5, 1/6)).

Filling in the probabilities by hand would require computation of 60 values of
the Binomial function with diﬀerent parameters; see Table 6.5.

#rolls

Fake die?

#6 (cid:3)s

Fig. 6.16. A model for the fake die problem.

Fake die? #rolls

0

1

2

3

4

5

#6 (cid:3)s

false
false
false
false
false
true
true
true
true
true

1
2
3
4
5
1
2
3
4
5

0.8333
0.6944
0.5787
0.4822
0.4018
0.8
0.6400
0.5120
0.4096
0.3276

0.1666
0.2777
0.3472
0.3858
0.4018
0.2
0.3200
0.3840
0.4096
0.4096

0
0.0277
0.0694
0.1157
0.1607
0
0.0400
0.0960
0.1536
0.2048

0
0
0.0046
0.0154
0.0321
0
0
0.0080
0.0256
0.0512

0
0
0
0.0007
0.0032
0
0
0
0.0016
0.0064

0
0
0
0
0.0001
0
0
0
0
0.0003

Table 6.5. The CPT for P(#6 (cid:3)s | #rolls, Fake die?) in the fake die problem of Ex-
ample 6.16 generated from the expression Binomial(#rolls, if(Fake die?, 1/5, 1/6)).

Example 6.17 (Discretization of a Random Variable (Hugin 2006)). Assume
that P(C1 | C2) can be approximated by a Normal distribution with mean
given by C2 and with variance 1, where C2 is an interval variable with states
] − 5; −1], ] − 1; 0], ]0; 1], ]1; 5]. If the discretization of C1 given by the intervals
] − ∞; −5], ] − 5; −2], ] − 2; 0], ]0; 2], ]2; 5], ]5, ∞[ is found to be suitable, then we
can specify P(C1 | C2) simply as Normal(C2, 1). The probability distribution

170

6 Eliciting the Model

P(C1 | C2 = c2) (i.e., the conditional distribution for C1 given that the value
of C2 belongs to interval c2) is generated by computing a large number of
probability distributions for C2, each distribution being obtained by instan-
tiating C1 to a value in the interval, c2, under consideration. The average of
these distributions (based on, for example, the midpoints of 25 subintervals) is
used as P(C1 | C2 = c2). Hence, for expressions involving several interval vari-
ables as parents, the generation of the CPT may be computationally intensive.
Table 6.6 shows P(C1 | C2).

C2

] − ∞; −5]

] − 5; −2]

] − 5; −1]
] − 1; 0]
]0; 1]
]1; 5]

0.0996
7.1E−6
5.3E−8
3.8E−11

0.6297
0.0748
0.0081
9.4E−5

C1
] − 2; 0]

0.2499
0.6096
0.3075
0.0207

]0; 2]

]2; 5]

]5, ∞[

0.0207
0.3075
0.6096
0.2499

9.4E−5
0.0081
0.0748
0.6297

3.8E−11
5.3E−8
7.1E−6
0.0996

Table 6.6. The CPT for P(C1 | C2) in the discretization problem of Example 6.17
generated from the expression Normal(C2, 1).

6.6 Concluding Remarks

In this chapter we have tried to convey a set of good practices, routines,
and hints that can be helpful for novices wanting to construct a probabilistic
network model for a problem domain.

When constructing a model (probabilistic or not) it is crucial to realize
that real-world problem domains are usually embedded in a complex reality
involving interaction with numerous diﬀerent aspects of the real world in a
way that can never be fully captured in a model. Also, the internal causal
mechanisms of a problem domain can almost always only be approximately
described in a model. Thus, it is important to bear in mind that all models
are wrong, but that some might be useful.

Based on this insight, it is important to clearly state the context of the
model as well as the assumptions and conditions under which it is supposed
to work. Real-world problem domains exist in an open world, whereas models
for the problem domains are based on a (most often, erroneous) closed-world
assumption.

The construction of a probabilistic network typically runs through four

main phases:

Design of the network structure, covering identiﬁcation of variables and
(causal) relations among the variables. In addition, veriﬁcation of the
network structure is an essential activity of the design phase, where

6.6 Concluding Remarks

171

the dependence and independence relations represented in the model are
stated and veriﬁed.

Implementation of the network, covering the process of populating the CPTs
and UTs with (conditional) probabilities and utilities. This phase is often
the most labor intensive of the four phases.

Test of the network to check if it provides sensible outputs to a carefully se-
lected set of inputs. In a medical setting, for example, testing may amount
to entering patient data and comparing network recommendations (e.g.,
diagnoses or treatment plans) with recommendations provided by med-
ical experts. If the test phase does not reveal any ﬂaws of the network,
construction of the network is considered successfully completed.

Analysis of the network is performed to pinpoint problematic aspects of the
network revealed in the test phase. Various tools may be brought into
play, including conﬂict analysis (see Chapter 9), sensitivity analyses (see
Chapter 10), and value-of-information analysis (see Chapter 11).

In the design phase it is crucial to clearly deﬁne the problem that is going
to be addressed by the model, and to pay close attention to this problem
deﬁnition when identifying the variables of the model. It is strongly recom-
mended to keep the number of variables and (causal) relations among them
to a minimum; only those variables and relations that are thought to have
signiﬁcant inﬂuences on the problem variable(s) should be included.

In his writings, William of Occam (or Ockham) (1284–1347) stressed the
Aristotelian principle that entities must not be multiplied beyond what is
necessary. This principle became known as Occam’s Razor or the law of par-
simony; a problem should be stated in its basic and simplest terms. In science,
the simplest theory that ﬁts the facts of a problem is the one that should be
selected. This rule is interpreted to mean that the simplest of two or more
competing theories is preferable and that an explanation for unknown phe-
nomena should ﬁrst be attempted in terms of what is already known.1

One argument why one should go for simpler rather than complex solutions
to a problem lies in the fact that simpler solutions impose less assumptions
about the problem (e.g., about dependences and independences), and hence
postulate fewer hypothetical solutions. The underlying idea is thus that sim-
pler solutions are more likely to be “correct”.

A key design principle applied in the construction of virtually any complex
system is the principle of a modular top-down design in which the level of ab-
straction changes from the more abstract to the more concrete. To support a
modular design approach clear descriptions of the interface mechanisms of the
modules must be provided. Also, given clear interface descriptions, coopera-
tion among sub-teams, reuse modules (submodels), and support for bottom-up
design are made possible. There are several reasons why an object-oriented
modeling approach (see Section 4.3), which facilitate exactly a modular model

1 This paragraph is taken from http://www.2think.org/occams razor.shtml

172

6 Eliciting the Model

construction approach that allows for both top-down and bottom-up design,
is recommended for constructing large models:

• Large and complex systems are often composed of collections of identical
or similar components. Therefore, models of such systems will naturally
contain repetitive submodels. Object orientation allows such components
to be instantiated from a generic class. Both construction and maintenance
becomes a whole lot easier in this way: each component is generated simply
through instantiation and changes that apply to all instances should be
made only in the class from which the components have been instantiated.
• Many complex real-world systems (e.g., mechanical and biological systems)
are naturally described in terms of hierarchies of components (i.e., the sys-
tem consists of components, which consist of sub-components, etc.). Thus,
often an object-oriented probabilistic network (OOPN) more naturally de-
scribes the structure of the system modeled.

• Object-oriented model construction supports both top-down and bottom-
up modes of construction, which are often used, respectively, to maintain
a good overview of the model by abstracting away irrelevant details and
to focus on sub-components with a well-deﬁned interfaces to their sur-
roundings. Thus, the OOPN framework provides support for working with
diﬀerent levels of abstraction in the model constructing process.

• Object-oriented model construction provides a natural means to reuse of
existing sub-models. That is, the methodology provides a means to main-
tain a library of sub-models that can be instantiated in many diﬀerent
OOPNs.

• Specifying a model in a hierarchical fashion often makes the model less
cluttered, and thus provides a better means of communicating ideas among
knowledge engineers, domain experts, and users.

• The composition of a model by a number of components with well-deﬁned
interfaces supports a collaborative model construction process, where dif-
ferent model constructors work on diﬀerent parts of the model.

Finally, it is important to realize that construction of a probabilistic net-
work is an iterative process in the sense that if model testing reveals ﬂaws of
the model, another cycle through the model construction phases mentioned
above is necessary. In most practical model construction projects, many iter-
ations are needed before a workable model is found. This iterative process is
illustrated in Figure 6.17.

6.7 Summary

Manual construction of a probabilistic network for a complex decision or di-
agnosis problem is usually a demanding task, involving diﬀerent sources of
expertise that provide model engineering skills as well as deep understand-
ing of the problem domain. The model elicitation process requires careful

6.7 Summary

173

s e
o ls
o

h

(

u
t o
b l e s

o t

u

t r o
e l)

t e s t
w
o
n

n

k

s i s
sis

a l y
a l y
t o

d

m o

D e
a

(i d
d

n

a

n
s i g
b l e s
e r f o r m
p
ti o

)

n

a ri-
v
n
s, a
e ri ﬁ

d

c

a -

e

tif y
n
n
r e l a ti o
e l v
d
m o

A n
a

n

n

t i o
a r a m e -
i. e .,
p
e s;

a

t

n

a l u
e r s )

I m p l e m e
( e li c it
t e r
m b
u
n

v

h

n

u
( r
w it
o m e )

T e
c

t
s
a s e s
t c
u
o

Fig. 6.17. Model construction is an activity that iteratively passes through de-
sign, implementation, test, and analysis phases until model tests no longer uncover
undesired behavior of the model.

problem deﬁnition, careful identiﬁcation of the relevant variables and depen-
dences/independences among the variables, and elicitation of many (condi-
tional) probabilities and utilities.

However appealing a probabilistic network might seem in terms of com-
pactness of representation and in terms of serving as an intuitive means for
communication of problem domain characteristics, there exist problems for
which probabilistic networks are not the ideal tool to use. In Section 6.1, we
discussed some characteristics of probabilistic networks and some criteria for
using them. Brieﬂy, and most importantly, the variables of the problem do-
main should be well-deﬁned, causal relations among the variables should be
identiﬁable, uncertainty should be associated with the causal relations, and
the problem should contain an element of decision making with a desire to
maximize the expected utility of a decision.

In Section 6.2, we discussed how to identify the right set of variables of
a probabilistic network and what it takes for a variable to be well-deﬁned.
A simple taxonomy of variables was introduced, which includes three basic
types of variables and their causal relations. Problem variables (or hypothesis
variables) represent the diagnoses, classiﬁcations, predictions, decisions, etc.
to be made. Information variables represent the available information (evi-
dence) that can provide information relevant for solving the problem. Finally,
mediating variables represent unobservable entities of the problem domain for

174

6 Eliciting the Model

which posterior probabilities are of no immediate interest, but which play an
important role for achieving the right dependence and independence proper-
ties of the network or for making eﬃcient inference.

In Section 6.3, we ﬁrst described a basic approach to structure elicitation,
showing how the variable taxonomy can be used in the attempt to elicit the
model structure. Next, we described how the notion of idioms can be helpful
in identifying fractions of a network structure, depending on the nature of
the semantic relations that exist among a small set of variables. Five idioms,
thought to cover the vast majority of commonly occurring semantic relation-
ships, were presented. The ﬁve idioms can be thought of as ﬁve archetypical
modes of uncertain reasoning, and thus, using the idioms approach to elic-
itation of model structure, one is encouraged to think at a higher level of
abstraction, leaving behind details about which links to include and their
directionality.

Although the basic approach to structure elicitation can be quite feasible
for some problems, for most (large) real-world problems the use of idioms is
preferable, as the idioms approach splits the problem into smaller and more
manageable chunks.

In Section 6.4 we brieﬂy touched upon the issue of model veriﬁcation, an
important activity immediately following the structure elicitation eﬀort. In
the model veriﬁcation process one checks if the dependence and independence
statements imposed by the structure are consistent with the knowledge of
problem domain experts.

In Section 6.5, we presented some techniques that might be considered
in the attempt to elicit the (subjective) values of the parameters (i.e., (con-
ditional) probabilities and utilities) dictated by the structure of the model.
Also, we presented a lower-level taxonomy for variables, distinguishing among
them in terms of their types of domains. Knowledge about the types of do-
mains of variables allows for automatic generation of CPTs and UTs through a
language of mathematical operations, including if-then-else statements, arith-
metic and Boolean operations, and a variety of discrete and continuous dis-
tributions. The ability to deﬁne CPTs and UTs in terms of compact mathe-
matical expressions might greatly reduce the burden of eliciting the numbers
(parameter values) of a probabilistic network.

We concluded the discussion on model elicitation in Section 6.6 by point-
ing out some typical main phases of the model construction process, and how
these phases are repeated iteratively until model tests no longer uncover unde-
sired behavior of the model. Also, we pointed to the fact that the best models
are usually constructed through deliberate use of the law of parsimony (or Oc-
cam’s razor). Finally, we touched upon the potential beneﬁts of applying an
objected-oriented modeling approach, which facilitates modular model con-
struction with the freedom to use a top-down or a bottom-up approach. The
use of an object-oriented approach is especially beneﬁcial for construction of
large models.

Exercises

175

Exercises

Exercise 6.1. There are three condemned prisoners A, B and C. The gover-
nor has announced that one of the three, chosen at random, has been par-
doned, but does not say which. Prisoner A, realizing that he only has a 1/3
chance of having been pardoned, reasons with the warden as follows: “Please
tell me the name of one of the other prisoners B or C who will be executed.
I already know that at least one of them will be executed so you will not
be divulging any information.” The warden then asks how he should choose
between B or C in case both are to be executed. “In that case,” A tells him,
“simply ﬂip a coin (when I’m not around) to choose randomly between the
two.” The warden agrees and later tells A that B will be executed. On hearing
this news, A smiles and thinks to himself, “Now my chances of having been
pardoned have increased from 1/3 to 1/2”.

(a) Identify the variables of a Bayesian network model of the reasoning made

by prisoner A.

(b) Specify the domains of the variables.
(c) Are your variables well-deﬁned? Why or why not?
(d) Characterize the variables in terms of the taxonomy presented in Sec-
tion 6.2.2 on page 150 and specify the causal links of your model using the
prototypical causal structure shown in Figure 6.3.

(e) Specify the (conditional) probabilities of your model and check if your

model agrees with the conclusion drawn by prisoner A.

Exercise 6.2. In Exercise 6.1, consider the suggestion to deﬁne three vari-
ables A, B, andC to represent the three prisoners. Are these variables well-
deﬁned? If so, why? If not, why not?

Exercise 6.3. In the morning when Mr Holmes leaves his house he realizes
that his grass is wet. He wonders whether it has rained during the night or
whether he has forgotten to turn oﬀ his sprinkler. He looks at the grass of his
neighbors, Dr Watson and Mrs Gibbon. Both lawns are dry and he concludes
that he must have forgotten to turn oﬀ his sprinkler.

(a) Identify the relevant variables a probabilistic network representing Mr
Holmes’ reasoning problem. Also, identify the domains of the variables.
(b) Characterize the variables in terms of the taxonomy presented in Sec-
tion 6.2.2 on page 150 and specify the causal links of your model using the
prototypical causal structure shown in Figure 6.3.

(c) If you were to construct the model using the idioms approach, which id-

iom(s) would you use?

(d) Verify that your model is consistent with the following dependence and

independence statements:
(i) Information about the states of the lawns (i.e., wet or dry) are inde-
pendent if we know that it has rained; otherwise, they are dependent.

176

6 Eliciting the Model

(ii) Information about the state of rain and information about the state of
Holmes’ sprinkler are dependent if the state of Holmes’ lawn is known;
otherwise, they are independent.

Exercise 6.4. Consider the inference problem in Example 2.4 on page 25,
which is stated as follows:

Mr Holmes is working in his oﬃce when he receives a phone call from
his neighbor Dr Watson, who tells him that Holmes’ burglar alarm
has gone oﬀ. Convinced that a burglar has broken into his house,
Holmes rushes to his car and heads for home. On his way, he listens
to the radio, and in the news it is reported that there has been a small
earthquake in the area. Knowing that earthquakes have a tendency to
turn burglar alarms on, he returns to his work.

The structure of a Bayesian network for this inference problem is shown in
Figure 6.18.

B

E

R

A

W

• W: Phone call from Watson
• A: Burglary alarm
• B: Burglary
• R: Radio news
• E: Earthquake

Fig. 6.18. Structure of a Bayesian network for the “Burglary or Earthquake” in-
ference problem.

(a) Classify the variables in Figure 6.18 according to the taxonomy in Sec-

tion 6.2.2 on page 150.

(b) Verify that the structure in Figure 6.18 is consistent with the prototypical

causal structure shown in Figure 6.3 on page 153.

Exercise 6.5. Consider the task of providing your subjective probabilities of
who is going to win the next World Cup in soccer.

(a) Provide your probability that Brazil wins.
(b) Consider the following gambles:

(i) If Brazil wins, you receive $10.
(ii) If you draw a red ball from an urn with n red balls and 100 − n white

balls, you receive $10.

For which value of n are the two gambles equally attractive to you?
(c) Compare your original subjective probability that Brazil wins with n/100

from (b).

7

Modeling Techniques

In this chapter we introduce a set of modeling methods and techniques for
simplifying the speciﬁcation of a probabilistic network.

The construction of a probabilistic network may be a labor-intensive task
to perform. The construction involves a sequence of steps such as identify-
ing variables, identifying states of variables, encoding dependence and inde-
pendence relations as an acyclic, directed graph, and eliciting (conditional)
probabilities and utilities as required by the structure of the acyclic, directed
graph.

There are many reasons for considering the utilization of modeling tech-
niques in the model development process. Modeling techniques may be applied
in order, for instance, to simplify knowledge elicitation and model speciﬁca-
tion, capture certain properties of the problem domain that are not easily
captured by an acyclic, directed graph, to reduce model complexity and im-
prove eﬃciency of inference in the model, and so on.

Section 7.1 considers modeling techniques for adjusting the structure of a
probabilistic network. This includes, in particular, modeling techniques that
captures certain structural properties of the problem domain that help reduce
the complexity of a model. Section 7.2 considers modeling techniques for the
speciﬁcation of conditional probability distributions. This includes modeling
techniques for capturing uncertain information and for reducing the number
of parameters to specify. Finally, Section 7.3 considers modeling techniques
for inﬂuence diagram models. This includes modeling techniques of capturing
properties of a problem domain that seemingly do not fulﬁll the underlying
assumptions of inﬂuence diagrams.

7.1 Structure Related Techniques

In this section we consider modeling techniques related to the structure of
a probabilistic network. In particular we consider parent divorcing, temporal
transformation, the representation of structural and functional uncertainty,

178

7 Modeling Techniques

undirected dependence links, bidirectional relations, and the Naive Bayes
model.

7.1.1 Parent Divorcing

The modeling techniques referred to as parent divorcing (Olesen, Kjærulﬀ,
Jensen, Jensen, Falck, Andreassen & Andersen 1989) is a commonly used
modeling technique for reducing the complexity of a model by adjusting the
structure of the graph of a probabilistic network. The technique of parent
divorcing can be applied to reduce the complexity of specifying and repre-
senting the direct impact of a relatively large number of variables X1, . . . , Xn,
referred to as the cause variables, on a single variable Y, referred to as the
eﬀect variable.

The basic idea of parent divorcing is to introduce layers of intermediate
variables between the eﬀect variable Y and its direct causes X1, . . . , Xn such
that each intermediate variable I captures the impact of its parents on the child
variable. The parents of I may consists of a subset of intermediate variables
and cause variables.

Figure 7.1(a) illustrates a model structure where the variable Y has three
direct parent causes X1, X2, X3. Parent divorcing applied to Y and its direct
causes X1, X2, X3 amounts to introducing a mediating variable I between Y
and a subset of its parents X1, X2, X3. Let the subset of parents be X1 and X2
such that Y after parent divorcing has parents X3 and I while X1 and X2 are
parents of I. The result of this process is as illustrated in Figure 7.1(b). Notice
that X1 and X2 are divorced from the remaining parents of Y.

X1

X2

X3

X1

X2

X3

Y

(a)

I

Y

(b)

Fig. 7.1. (a) X1, X2, and X3 are direct parents of Y. (b)X 3 is a direct parent of Y
while the combined inﬂuence of X1 and X2 is mediated through I.

The following example illustrates how the use of parent divorcing may
reduce the size of a conditional probability distribution signiﬁcantly by ex-
ploiting structure within conditional probability distributions.

7.1 Structure Related Techniques

179

Example 7.1. Consider Figure 7.1 and assume Y is deﬁned as the disjunction of
its three parents X1, X2, andX 3. This implies that the conditional probability
distribution P(Y | X1, X2, X3) is deﬁned as shown in Table 7.1.

X1

X2

X3

false

true

Y

false
false
false
false
true
true
true
true

false
false
true
true
false
false
true
true

false
true
false
true
false
true
false
true

1
0
0
0
0
0
0
0

0
1
1
1
1
1
1
1

Table 7.1. The conditional probability distribution P(Y | X1, X2, X3).

By inspection of Table 7.1 it is clear that the conditional probability distri-
bution P(Y | X1, X2, X3) has a lot of structure. This structure can be exploited
to reduce the size of the largest conditional probability distribution using
parent divorcing.

X1

X2

X3

X1 ∨ X2

Y

Fig. 7.2. Parent divorcing applied to the distribution for Y = X1 ∨ X3 ∨ X3.

The structure in Figure 7.1(a) deﬁnes Y as Y = X1 ∨ X2 ∨ X3 disregarding
the fact that disjunction is a binary operator. On the other hand the structure
shown in Figure 7.2 deﬁnes Y as Y = (X1∨X2)∨X3 by introducing a mediating
variablecapturing the expression X1 ∨ X2. The distribution P(X1 ∨ X2 | X1, X2)
is shown in Table 7.2 (the distribution P(Y | X1 ∨ X2, X3) is equivalent).

Thus, instead of having one distribution of size 16 we have two tables of
size 8. The reduction in size of the largest conditional probability table may
seem insigniﬁcant. However, if there is a large number of parents the reduction
is signiﬁcant. The reduction may make an otherwise intractable task tractable.

180

7 Modeling Techniques

X1 ∨ X2

X1

X2

false

true

false
false
true
true

false
true
false
true

1
0
0
0

0
1
1
1

Table 7.2. The conditional probability distribution P(X1 ∨ X2 | X1, X2).

The fundamental idea of parent divorcing is that through the utilization
of mediating variables it may be possible to divorce subsets of parents of the
eﬀect variable in order to limit the size of parent sets. Parent divorcing is
almost only used when the relation among parent variables can be expressed
as a chain of associative binary operations such as ∨, ∧, min, max, +, −, . . ..

In general, the underlying assumption of parent divorcing is that the con-
ﬁgurations of (X1, X2), i.e., pairs of instantiations of X1 and X2, can be parti-
tioned into sets i1, . . . , im such that diﬀerent conﬁgurations (x1, x2), (x(cid:2)
2) ∈
ii if and only if for all y:

1, x(cid:2)

P(y | x1, x2, x3, . . . , xn) =P (y | x(cid:2)

1, x(cid:2)

2, x3, . . . , xn)

Table 7.3 shows how the conditional distribution P(Y | X1, . . . , Xm) may
support the use of parent divorcing. For diﬀerent conﬁgurations of X1 and X2,
the child variable Y has the same distribution, e.g., for conﬁgurations (x1, x2)
and (x(cid:2)

2), the distribution of Y is z1, . . . , zn.

1, x(cid:2)

X1

x1

x1

x(cid:3)
1

x(cid:3)
1

X2

x2

x(cid:3)
2

x2

x(cid:3)
2

X3

x3
...
x3
...
x3
...
x3

· · ·

· · ·

Xm y1

xm

z1

· · ·

xm

· · ·

xm

z(cid:3)
1

z(cid:3)
1

· · ·

xm

z1

Y
· · ·

· · ·
...
· · ·
...
· · ·
...
· · ·

yn

zn

z(cid:3)
n

z(cid:3)
n

zn

Table 7.3. The conditional probability distribution P(Y | X1, . . . , Xm).

An intermediate variable I may be introduced in order to exploit of the
structure of P(Y | X1, . . . , Xm). Figure 7.3 illustrates how the intermediate vari-
able I is introduced as a parent of Y and a child of X1 and X2.

7.1 Structure Related Techniques

181

X1

X2

X3

· · ·

Xm

I

Y

Fig. 7.3. Parent divorcing in general.

The conditional probability distribution of the intermediate variable I is
often a deterministic function in conﬁgurations of its parents. Table 7.4 shows
the conditional probability distribution P(I | X1, X2).

X1

x1
x1
x(cid:3)
1
x(cid:3)
1

X2

x2
x(cid:3)
2
x2
x(cid:3)
2

I

i1

i2

1
0
0
1

0
1
1
0

Table 7.4. The conditional probability distribution P(I | X1, X2).

Since I replaces X1 and X2 as parents of Y, the conditional probability
distribution of Y changes. Table 7.5 shows the conditional probability distri-
bution P(Y | I, X3, . . . , Xm).

I

i1

X3

x3

· · ·

· · ·

...

Xm y1

xm

z1

i2

x3

· · ·

xm

z(cid:3)
1

Y
· · ·

· · ·
...
· · ·

yn

zn

z(cid:3)
n

Table 7.5. The conditional probability distribution P(Y | I, X3, . . . , Xm).

The above property is captured by introducing a mediating variable I as
parent of Y with X1 and X2 as parents. Parent divorcing is particularly useful
in situations where the state space size of the intermediate variable is (sig-
niﬁcantly) smaller than the combined state space of its parents. Example 7.1
on page 179 shows one situation where parent divorcing improves the eﬃ-
ciency of a model. That is, parent divorcing is (representationally) eﬃcient if

182

7 Modeling Techniques

|I| < ||X1|| · ||X2||, i.e., if the number of subsets is less than the combined state
space size of X1 and X2.

Parent divorcing may be considered as a relevant modeling technique when
specifying P(Y | X1, . . . , Xn) is a signiﬁcant or even intractable knowledge ac-
quisition task or when the size of n makes probabilistic inference intractable.
Notice that parent divorcing can always be applied to a variable and its
parents. If the intermediate variable I in Figure 7.1(b) has one state for
each conﬁguration of its parents, then the conditional probability distribu-
tion P(Y | X3, I) can be considered as equivalent to P(Y | X1, X2, X3). In this
case nothing has been gained from applying parent divorcing with respect to
reducing the complexity of the model or improving eﬃciency of the model.

How to Implement This Technique

The parent divorcing modeling technique is implemented as follows.

(1) Let XW ⊂ pa(Y) be the subset of parents of Y to be divorced from pa(Y) \

XW.

(2) Create an intermediate node I as a common child of XW and a new parent

of Y replacing XW as parents of Y.

(3) Let I have one state for each subset of XW mapping to the same distrib-

ution on Y.

(4) Deﬁne the distribution of I given XW such that each subset of XW mapping

to the same distribution on Y maps to the same state of I.

(5) Repeat the above steps for each subset XW ⊂ pa(Y) to be divorced

from pa(Y) \ XW.

7.1.2 Temporal Transformation

In this section we focus on applying the temporal transformation to adjust
the network structure to capture structure within a conditional probability
distribution of an eﬀect variable Y given a set of causes X1, . . . , Xn expressing
a temporal (or causal) order on the impact of the cause variables on the eﬀect
variable Y. Instead of combining causes pairwise as in parent divorcing, the
inﬂuence of causes on the eﬀect variable are taken into account one cause at
a time in their causal or temporal order.

The method of temporal transformation is best illustrated by an example.
Figure 7.4 shows the result of applying the temporal order method on the
conditional probability distribution of a variable Y given cause variables X1,
X2, X3, and X4. Notice the temporal order on the causal impacts of the cause
variables on the eﬀect variable. The intermediate variables Y1 and Y2 have the
same state spaces as Y.

The variables in Figure 7.4 may represent causes X1, X2, and X3 of a
disease Y and a medicament X4 for curing the disease. The causes X1, X2,
and X3 add to the level of the disease Y independently while the medicament

7.1 Structure Related Techniques

183

cures the disease no matter the level of the disease. In this example it is
important that X4 is the last variable in the temporal order of the causes.
The example could be extended such that X1, X2 and X3 represent diﬀerent
risk factors of the disease that have a temporal order.

X2

X3

X4

X1

Y1

Y2

Y

Fig. 7.4. Modeling a temporal order of the impacts of X1, . . . , X4 on Y.

The temporal transformation method was introduced by Heckerman (1993)
and reﬁned by Heckerman & Breese (1994). A temporal order of the causal
impacts of X1, . . . , Xn on Y is not necessary for applying the method of tem-
poral transformation. In addition to representing a temporal order of causal
inﬂuence, the temporal transformation method can be used as an alternative
to parent divorcing. The parent divorcing method described in the previous
section also captures internal structure of a conditional probability distribu-
tion of an eﬀect variable given a set of cause variables. The parent divorcing
method often constructs a (balanced) binary tree combining causes pairwise
recursively, while the temporal transformation method constructs an unbal-
anced binary tree as illustrated in Figure 7.4.

The temporal transformation was introduced by Heckerman (1993) as a
method for representing causal independence between a set of cause vari-
ables X1, . . . , Xn with a common eﬀect E. The model structure in Figure 7.1(a)
on page 178 does not capture the property that cause variables X1, . . . , Xn im-
pact the eﬀect variable E independently. Temporal transformation can be used
to implement independence of causal inﬂuence as deﬁned in Section 7.2.5.

How to Implement This Technique

The temporal transformation modeling technique is implemented as follows.

(1) Let (X1, . . . , Xn) be an ordering of the parents pa(Y) of Y.
(2) For i = 2, . . . , n − 1 create an intermediate node Yi with the same state

space as Y as a child of Xi and a parent of Yi+1 where Yn = Y.

(3) Add X1 as a parent of Y2.
(4) Deﬁne the distribution of Yi for i = 2, . . . , n such that it captures the

combined impact of its parents on Y.

184

7 Modeling Techniques

7.1.3 Structural and Functional Uncertainty

When modeling certain domains as a probabilistic network it may be diﬃcult
or even seem impossible to specify the set of independence and dependence
assumptions using a DAG. It may seem impossible to specify a static DAG for
a problem domain where dependence relations change or are uncertain in the
sense that they are not known at the time of model development. Similarly,
it may be that the functional dependence relation between a variable and
(a subset of) its parents is uncertain.

A

B

X1

X2

A

B

S

?

?

Y

(a)

P

X1

X2

Y

(b)

Fig. 7.5. (a) Should A or B be the parent of Y? (b) Modeling structure and func-
tionality uncertainty.

Figure 7.5(a) shows an example where A and B may both be considered
as parent of Y. However, due to the nature of the problem domain only one
of the two is parent of Y at any given time. This is an example of what we
term structure uncertainty. Figure 7.5(b) shows how this behavior may be
represented as a DAG where S is a selector variable specifying P as taking on
the value of A or B. The nodes A, B, and P are assumed to have the same
domain, i.e.,

dom(A) = dom(B) = dom(P) = (z1, . . . , zn).

The prior distribution P(S = A) = 1 − P(S = B) speciﬁes the prior belief
in A being the true parent of Y. Table 7.6 shows the conditional probability
distribution P(P | A, B, S). We can deﬁne P(P | A, B, S) as

(cid:16)

P =

A if S = A
B if S = B

The following example illustrates how structure uncertainty between a

variable Ann and two causes George and Henry may be represented.

7.1 Structure Related Techniques

185

B

z1
z2

z1
z2

z1
z2

z1
z2

P

z1

z2

1
1

0
0

1
0

1
0

0
0

1
1

0
1

0
1

...

...

...

...

· · ·

· · ·
· · ·

· · ·
· · ·

· · ·
· · ·

· · ·
· · ·

zn

0
0

0
0

0
0

0
0

S

A

A z1
A z1
...
A z2
A z2
...
z1
z1
...
z2
z2
...

B
B

B
B

Table 7.6. The conditional probability distribution P(P | A, B, S).

Example 7.2 (Paternity). In addition to maintaining his orchard Jack Fletcher
breeds horses. Assume Jack — by mistake — placed a group of mares with
two stallions (instead of a single stallion) for breeding. After some time the
foal Ann is born. It is clear that the sire of Ann is one the stallions. The
question is which one.

The two stallions are Henry and George. Soon after birth it is discovered

that Ann is suﬀering from a disease caused by a certain genotype aa.

George

Henry

S

Sire

Mare

Ann

Fig. 7.6. Either George or Henry is the true sire of Ann.

This implies that one of the stallions is a carrier of the gene making its
oﬀspring unsuitable for breeding. A carrier of the disease has genotype aA
while a pure horse has genotype AA. This stallion should not be used in future
breeding. For this reason it is important to determine the paternity of Ann.

186

7 Modeling Techniques

The graph shown in Figure 7.6 captures the properties of the problem. Each
variable (except S) species the genotype of a horse where Sire denotes the true
father of Ann.

S

Henry George

Sire
aa AA aA

henry
henry
henry

george
george
george

aa
aa
aa
...
aa
aa
aa
...

aa
AA
aA

aa
AA
aA

1
1
1

1
0
0

0
0
0

0
0
1

0
0
0
...
0
1
0
...

Table 7.7. The conditional probability distribution P(Sire | Henry, George, S).

The selector variable S speciﬁes either Henry or George as the true father
and its domain is dom(S) = (henry, george). Thus, the conditional probability
distribution P(Sire | George, Henry, S) is deﬁned as

(cid:16)

Sire =

Henry
George

if S = henry
if S = george

This construction can be generalized for more complex pedigrees with mul-
tiple generations and oﬀspring of the stallion. Table 7.7 shows the conditional
probability distribution P(Sire | Henry, George, S) where aa, aA, and AA are
the three diﬀerent genotypes.

The situation where a variable Y is a function of a subsets of its parents
such that the state of Y is either one or another (known) function of its
parents is termed functional uncertainty. Functional uncertainty is similar
to structure uncertainty. The following example illustrates how functional
uncertainty between a variable Y and two causes X1 an X2 may be represented.

Example 7.3 (Functional Uncertainty). Consider two Boolean variables X1
and X2. Assume we know that there is a direct impact of conﬁgurations of X1
and X2 on the Boolean variable Y. Assume further that we know that ei-
ther Y = X1 ∨ X2 or Y = X1 ∧ X2 and that the ﬁrst case is known to appear
twice as frequently as the other.

This situation can be captured by a simpliﬁed version of the structure

shown in Figure 7.5(b) as illustrated in Figure 7.7.

The state space of F is dom(F) = (∨, ∧) such that P(F) = (2/3, 1/3). The

conditional probability distribution of Y is deﬁned as:

7.1 Structure Related Techniques

187

F

X1

X2

Y

Fig. 7.7. Either Y = X1 ∨ X2 or Y = X1 ∧ X2.

⎧
⎪⎨

⎪⎩

true
true
false

Y =

if X1 ∨ X2 and F = ∨
if X1 ∧ X2 and F = ∧
otherwise.

F

X1

X2

false

true

Y

∨ false
∨ false
∨ true
∨ true
∧ false
∧ false
∧ true
∧ true

false
true
false
true
false
true
false
true

1
0
0
0
1
1
1
0

0
1
1
1
0
0
0
1

Table 7.8. The conditional probability distribution P(Y | F, X1, X2).

This structure captures the uncertainty related to the impact of X1
and X2 on Y. Table 7.8 shows the resulting conditional probability distrib-
ution P(Y | F, X1, X2).

Example 7.4. In Example 4.10 on page 87 we have implicitly used the func-
tional uncertainty modeling technique. In the example we assumed that the
average height of a male person is greater than the average height of a female
person. If the sex of a person is unknown to us when we want to reason about
the height of the person, the situation is modeled using a simple variant of
functional uncertainty as illustrated in Figure 7.8.

The example may be extended by assuming there is a correlation between

height and weight as illustrated in Figure 7.9.

For each conﬁguration of Sex we deﬁne a linear function between weight

and height.

188

7 Modeling Techniques

Sex

Height

Fig. 7.8. Functional uncertainty on the height of a person.

Weight

Sex

Height

Fig. 7.9. Functional uncertainty on the height of a person.

How to Implement This Technique

The functional uncertainty modeling technique is implemented as follows.

(1) Let Y be a random variable with parents pa(Y) = {X1, . . . , Xn} such that Y

is a function of pa(Y).

(2) Assume the functional dependence relation between Y and pa(Y) is uncer-
tain such that the alternatives and their relative frequencies are known.

(3) Create a discrete random variable F with one state for each possible func-

tional dependence relation between Y and pa(Y).

(4) Deﬁne the prior probability distribution P(F) such that it encodes the

relative frequency of the possible functional dependence relations.

The structure uncertainty modeling technique is implemented similarly to the
way functional uncertainty is implemented.

7.1.4 Undirected Dependence Relations

The DAG structure of a probabilistic network speciﬁes a set of dependence
and independence relations between variables. These dependence and inde-
pendence relations are speciﬁed using directed links between pairs of variables
only. When capturing a set of dependence relations between variables using a
DAG it is not unusual to encounter the problem of how (most eﬃciently) to
represent a dependence relation which by nature is undirected.

7.1 Structure Related Techniques

189

Let X1, X2, and X3 be discrete variables with the same set of states. Assume
conﬁgurations where all variables are in the same state are illegal. This is a
typical example of an undirected dependence relation over a set of variables.
This type of undirected relation is referred to as a constraint.

A constraint over a subset of variables may be enforced by introducing
an auxiliary variable referred to as the constraint variable with an appropri-
ate number of states as a child of the variables to be constrained. Often the
constraint variable is Boolean, but it may have more that two states. Con-
ﬁgurations of the parent variables are mapped to states of the child and the
constraint is enforced using evidence on the constraint variable. For instance,
assume that we want to enforce a prior joint probability potential f(X1, X2, X3)
over variables X1, X2, and X3. The joint probability can be enforced using a
Boolean constraint node C with a conditional probability distribution deﬁned
as:

P(C = on | X1, X2, X3) = f(X1, X2, X3),
P(C = oﬀ | X1, X2, X3) = 1 − f(X1, X2, X3).

(7.1)

(7.2)

The constraint is enforced by instantiating C to on.

Figure 7.10 illustrates how constraints over conﬁgurations of variables X1,
X2, and X3 are enforced by introducing an auxiliary variable C with two
states. One state reﬂects legal conﬁgurations of variables X1, X2, andX 3
while the other state reﬂects illegal conﬁgurations of variables X1, X2, and
X3. In the example, all conﬁgurations where the three variables are not in the
same state are legal, while the remaining conﬁgurations where all variables
are in the same state are illegal. The constraint is enforced by instantiating
the variable C to the state corresponding to legal conﬁgurations.

X1

X3

X1

X2

X3

X2

(a)

C

ε

(b)

Fig. 7.10. (a) A functional relation f(X1, X2, X3) is to be enforced. (b) A constraint
over X1, X2, and X3 is enforced by instantiating C to on.

The following example illustrates the application of the modeling technique

described above to an everyday problem.

Example 7.5 (Washing Socks (Jensen 1996)). Two pairs of socks have been
washed in the washing machine. The washing has been rather hard on the
colors and patterns of the socks. One pair of socks is the pair of socks usually

190

7 Modeling Techniques

worn to play golf why the other is the pair of socks usually worn during long
airplane trips. The airplane socks help to improve blood circulation while the
golf socks have improved respiration. For this reason it is important to pair
the socks correctly.

S1

S2

S3

S4

C

Fig. 7.11. The constraint over S1, . . . , S4 is enforced by instantiating C to on.

The airplane socks are blue while the golf socks are black. The patterns of

two pairs of socks are also similar (at least after the washing).

S1

S2

S3

S4

airplane
airplane
airplane
airplane
airplane
airplane
airplane
airplane
golf
golf
golf
golf
golf
golf
golf
golf

airplane
airplane
airplane
airplane
golf
golf
golf
golf
airplane
airplane
airplane
airplane
golf
golf
golf
golf

airplane
airplane
golf
golf
airplane
airplane
golf
golf
airplane
airplane
golf
golf
airplane
airplane
golf
golf

airplane
golf
airplane
golf
airplane
golf
airplane
golf
airplane
golf
airplane
golf
airplane
golf
airplane
golf

C

oﬀ

on

1
1
1
0
1
0
0
1
1
0
0
1
0
1
1
1

0
0
0
1
0
1
1
0
0
1
1
0
1
0
0
0

Table 7.9. The conditional probability distribution P(C | S1, . . . , S4).

A model for distinguishing the socks of diﬀerent types has to capture the
undirected relation over the four socks. The relation enforces the fact that
there are exactly two airplane socks and two golf socks.

The model has four variables S1, . . . , S4. Each Si represents a sock and
has domain dom(Si) = (airplane, golf). The undirected relation R(S1, . . . , S4)
is a constraint over conﬁgurations of the S1, . . . , S4. Figure 7.11 illustrates the

7.1 Structure Related Techniques

191

model structure while Table 7.9 shows the conditional probability distribu-
tion P(C | S1, . . . , S4). The conditional probability distribution P(C | S1, . . . , S4)
may be deﬁned as

P(C = on | s1, s2, s3, s4) =

(cid:16)

1 if |{si = airplane}| = 2
0 otherwise.

The constraint is enforced by instantiating C to on.

In the description above we have focused on binary constraint variables.
In the general case the constraint variable may have more than two states.
In this case multiple states of the constraint variable specifying legal conﬁgu-
rations can be enforced using likelihood evidence assigning the value zero to
all states specifying illegal conﬁgurations and one to all states specifying legal
conﬁgurations.

How to Implement This Technique

The undirected directions modeling technique is implemented as follows.
(1) Let {X1, . . . , Xn} be the set of variables over which the prior joint proba-

bility distribution f(X1, . . . , Xn) is to be enforced.

(2) Create a binary constraint node C with states oﬀ and on.
(3) Add each X ∈ {X1, . . . , Xn} as a parent of C.
(4) Deﬁne the conditional probability distribution P(C | X1, . . . , Xn) as speci-

ﬁed in Equation 7.1 and Equation 7.2.

(5) Instantiate C to state on enforcing the constraint.

7.1.5 Bidirectional Relations

Section 7.1.4 describes how an undirected dependence relation over a subset
of variables can be enforced using a constraint variable. The introduction of a
constraint variable is necessary in order to represent the undirected relation as
a DAG. In this section we consider the similar problem of representing what
seems to be a bidirectional relation between a pair of variables. That is, when
a pair of variables are dependent it is not always evident which direction the
connecting link should have.

Figure 7.12(a) illustrates the situation where a pair of variables X1 and X2
should be connected by a link as there seems to be a direct dependence relation
between X1 and X2, but it is not possible to identify the direction of the link.
Should the link be directed from X1 to X2 or vice versa? An insuﬃcient set
of variables for capturing the dependence and independence properties of a
problem domain as a DAG is a common cause of this type of diﬃculty in
identifying the direction of a link. Figure 7.12(b) illustrates how a mediating
variable Y may be used to capture the bidirectional relation. The mediating
variable Y is introduced as a common cause of X1 and X2.

192

7 Modeling Techniques

Y

X1

?

?
(a)

X2

X1

X2

(b)

Fig. 7.12. (a) How should the bidirectional correlation between X1 and X2 be
captured? (b) A mediating variable Y between X1 and X2 captures the bidirectional
relation.

The following example illustrates how an insuﬃcient set of variables for
capturing the dependence properties of the problem domain can imply diﬃ-
culties in determining the direction of links.

Example 7.6 (Insemination (Jensen 1996)). Consider the task of monitoring
the pregnancy state of a cow (also considered in Example 6.5 on page 151).
Assume we have the options to perform a blood test and a urine test to
determine the pregnancy state of the cow. Both the blood test and the urine
test are indicators for the pregnancy state of the cow. Furthermore, we argue
that there is a dependence relation between the results of the two tests (if
either is positive (negative) we would expect the other test to be positive
(negative) as well).

We know there is a correlation between blood test and urine test, but
we cannot identify one test as a cause of the other test. This is indicated in
Figure 7.13(a) where Pr speciﬁes the pregnancy state of the cow while BT
and UT specify the results of the blood and urine tests, respectively. We
assume the blood test is not independent of the urine test given the pregnancy
state of the cow.

Looking deeper into the properties of the problem domain we identify some
additional structure that alleviates the problem of a bidirectional relation
between BT and UT. The two tests do not identify the pregnancy state of
the cow directly. Instead the two tests identify the hormonal state of the cow.
The resulting structure is shown in Figure 7.13(b) where HS represents the
hormonal state of the cow.

Notice that the structure shown in Figure 7.13(b) correctly captures the

conditional dependency of BT and UT given Pr.

How to Implement This Technique

The bidirectional relations modeling technique is implemented as follows.

(1) Let X1 and X2 be a pair of variables which seems to have a bidirectional

interaction.

7.1 Structure Related Techniques

193

Pr

?

?

(a)

BT

Pr

HS

UT

BT

UT

(b)

Fig. 7.13. (a) How should the bidirectional correlation between BT and UT be
captured? (b) The bidirectional correlation between BT and UT is captured by the
mediating variable HS.

(2) Create a mediating variable Y such that it is the intermediate variable in

a serial connection with X1 and X2.

(3) The identiﬁcation of the states of Y and the probability distribution of Y

is domain dependent.

7.1.6 Naive Bayes Model

Restricted probabilistic graphical models are used or considered when low
model complexity and high computational power are required. Low model
complexity and high computational power is often required in classiﬁcation
related problems. In a classiﬁcation problem the task is to classify an instance
into a class based on observations on properties of the instance.

The Naive Bayes model is one of the simplest restricted probabilistic graph-
ical models; see Friedman, Geiger & Goldszmidt (1997) who cite Duda & Hart
(1973) and Langley, Iba & Thompson (1992). The Naive Bayes model is a pop-
ular model due to its high representational and computational simplicity while
maintaining an impressive performance on classiﬁcation tasks.

Since the Naive Bayes model is most commonly used for classiﬁcation
problems, we will describe the model from this point of view. We consider the
task of classifying a set of instances into a predeﬁned set of classes based on
observations on properties of the instances. Let C be the class variable with one
state for each possible class and let I = {I1, . . . , In} be the set of variables (also
known as attributes, indicators, and features) where each variable represents
a property that we can possibly observe and have decided to include in our
model.

The structure of the Naive Bayes model is the reason for the simplicity and
eﬃciency of the model. The structure of the Naive Bayes model is illustrated in
Figure 7.14 where the class variable C is the only parent of each attribute and
no other structure is present in the graph. The Naive Bayes model assumes

194

7 Modeling Techniques

conditional pairwise independence of the attributes given the class. This is a
rather strong, but often useful assumption.

C

· · ·

I1

In

Fig. 7.14. The structure of the Naive Bayes model.

The set of (conditional) probability distributions induced by the Naive
Bayes model consists of the prior distribution P(C) on the class variable and
the conditional probability distribution P(Ii | C) on the attribute Ii given the
class for all i = 1, . . . , n. The Naive Bayes model induce a joint probability
distribution over the class and attributes as:

P(X) = P(C, I1, . . . , In) =P (C)

n(cid:5)

i=1

P(Ii | C).

Notice that this implies that the representational complexity of the model

is linear in the number of attributes.

Probabilistic inference in a Naive Bayes model consists of computing the
conditional probability distribution P(C | ε) where ε consists of observations
on a subset of the attributes of the instance to be classiﬁed. For any set of
observations ε = {i1, . . . , im} we may calculate the likelihood of the class as:

L(C | ε) = P(ε | C) =

P(i | C).

(cid:5)

The posterior of the class is computed from the product of the prior and
the likelihood by normalization P(C | ε) = αL(C | ε)P(C), where α = P(ε)−1 =
(cid:6)
(

C L(C | ε)P(C))−1, or expressed via Bayes’ rule as:

i∈ε

P(C | ε) = P(ε | C)P(C)

P(ε)

.

Despite its simplicity and strong assumption of pairwise independence of
the attributes given the class, the Naive Bayes model has in practice been
shown to have excellent performance on (many) classiﬁcation tasks. This
makes the Naive Bayes model popular. The following example illustrates the
most common application of the Naive Bayes model.

Example 7.7. Consider the task of classifying a mushroom as either edible or
poisonous based on observations on the shape, color and odor of the mush-
room. This is a classic classiﬁcation problem. We make observations on the
mushroom to identify it as either edible or poisonous.

7.1 Structure Related Techniques

195

Figure 7.15 shows a Naive Bayes model for this classiﬁcation task. The
model has class variable Class and feature variables Color, Odor, andShape .
The class variable is the direct parent of each feature variable and no other
structure is present.

Class

Shape

Color

Odor

Fig. 7.15. A Naive Bayes model for classifying mushrooms.

The class variable has states dom(Class) = (edible, poisonous) while the fea-
ture variables have states dom(Odor) = (none, almond, spicy), dom(Shape) =
(ﬂat, bell, convex), and dom(Color) = (brown, white, black).

The prior distribution on Class speciﬁes the frequency of edible and poi-
sonous mushrooms while the conditional distribution of each feature variable
speciﬁes the distribution of the feature given the mushroom class. Table 7.10
shows the distribution P(Odor | Class). The distribution of each of the other
feature variables is similar.

C

edible
poisonous

none

0.902
0.173

Odor
almond

0.0979
0.001

spicy

0.0001
0.826

Table 7.10. The conditional probability distribution P(Odor | C).

Each time a mushroom is picked up, the features of the mushroom are
observed and entered into the model as evidence. After inference the model
returns the probability that the mushroom is edible.

There exist other classes of restricted probabilistic graphical models than
the Naive Bayes model. For instance, the Tree-Augmented Naive Bayes
model (Friedman et al. 1997) appears as a natural extension of the Naive
Bayes model while the Hierarchical Naive Bayes model (Zhang 2004) is an-
other extension of the Naive Bayes model.

How to Implement This Technique

The Naive Bayes modeling technique is implemented as follows.

196

7 Modeling Techniques

(1) Let C be the class variable with one state for each possible class.
(2) Let I = {I1, . . . , In} be the set of feature variables.
(3) Let C have no parents and let it be the only parent of each feature vari-
able Ii. In this way, C becomes the intermediate variable in a serial con-
nection with each pair of feature variables.

(4) Deﬁne the prior probability distribution P(C) such that it encodes the

relative frequency of each class.

(5) For each Ii ∈ I deﬁne the conditional probability distribution P(Ii | C)
such that it encodes the relative frequency of each state of the feature
given each state of the class variable.

If data are available, then it may be an advantage to estimate the prior
and conditional probability distributions P(C) and P(I1 | C), . . . , P(In | C) from
data.

7.2 Probability Distribution Related Techniques

In this section we consider modeling techniques related to the speciﬁcation
of probability distributions of a probabilistic network. In particular we con-
sider measurement error, expert opinions, node absorption, setting a value
by intervention, independence of causal inﬂuence and mixture of Gaussian
distributions.

7.2.1 Measurement Uncertainty

Probabilistic networks are well-suited models for reﬂecting properties of prob-
lem domains with some kind of uncertainty. The sources of uncertainty may be
many and diverse. In this section we consider a modeling technique for repre-
senting uncertainty related to measurements. Measurements and observations
on the state of the problem domain such as, for instance, sensor readings and
noisy observations, are subject to uncertainty. In some situations it may be
important to capture and represent the uncertainty explicitly in a probabilistic
model.

Accuracy

Value

Observed

Fig. 7.16. The observed value of a phenomenon is a function of the accuracy of the
measurement and the actual value of the measured phenomenon.

Figure 7.16 illustrates a modeling technique that captures measurement
uncertainty. The variable Value represents the actual value of the phenomenon

7.2 Probability Distribution Related Techniques

197

being measured, the variables Observed and Accuracy represent the observed
value of the phenomenon and the accuracy with which observations are made,
respectively.

Example 7.8. For some reason we would like to measure the temperature in
a room. Thetrue temperature is unknown, but we may use a thermometer
to get an estimate of the temperature in the room. Assume we have two
diﬀerent thermometers to choose from: one thermometer of low quality and
another thermometer of high quality. The high quality thermometer oﬀers
more accurate estimates of the temperature.

Quality

Temperature

Obs Temperature

Fig. 7.17. The measured temperature is a function of the quality of the thermometer
and the actual temperature.

Figure 7.17 shows the structure of a model with variables Obs Temperature,
Quality, and Temperature. Assume that the three variables have domains
dom(Obs Temperature) = (low, medium, high), dom(Quality) = (low, high), and
dom(Temperature) = (low, medium, high). Table 7.11 shows the conditional
probability distribution P(Obs Temperature | Quality, Temperature).

Quality Temperature

Obs Temperature
low medium high

low
low
low
high
high
high

low
medium
high
low
medium
high

0.6
0.2
0.1
0.9
0.05
0

0.3
0.6
0.3
0.1
0.9
0.1

0.1
0.2
0.6
0
0.05
0.9

Table 7.11. The
Quality, Temperature).

conditional probability distribution P(Obs Temperature |

Notice how the distribution over Obs Temperature depends on the qual-
ity of the thermometer used to measure the temperature. This reﬂects the
accuracy of each thermometer.

An explicit representation of the accuracy with which observations are

made is not always necessary.

198

7 Modeling Techniques

Example 7.9. Example 7.5 on page 189 illustrates how to enforce the fact that
there are two socks of each type (airplane and golf). To classify the four socks
we make observations on the color and pattern of each sock. Color and pattern
are indicator variables for the type of sock.

Sock

Color

Pattern

Obs Color

Obs Pattern

Fig. 7.18. The observations on color and pattern are imperfect.

The observations on color and pattern are imperfect due to the washing.
Figure 7.18 shows the model structure for classifying a single sock based on
(imperfect) observations on color and pattern.

Obs Color

Color

blue

black

blue
black

0.9
0.05

0.1
0.95

Table 7.12. The conditional probability distribution P(Obs Color | Color).

The conditional probability distribution P(Obs Color | Color) is shown in
Table 7.12. Notice that blue is observed as black in 10% of the cases and black
is observed as blue in 5% of the cases.

The measure uncertainty modeling technique is closely related to the mea-

surement idiom, see Section 6.3.2 on page 154.

How to Implement This Technique

The measurement uncertainty modeling technique is implemented as follows.

(1) Let variable Value represent the actual value of the phenomenon being

measured.

7.2 Probability Distribution Related Techniques

199

(2) Create variables Observed and Accuracy representing the observed value
of the phenomenon and the accuracy with which observations are made,
respectively.

(3) Let Value and Accuracy be the parents of Observed.
(4) Let Observed have one state for each possible observation of Value.
(5) Let Accuracy have one state for each possible level of accuracy of the

observation on Value.

(6) Deﬁne the prior probability distribution P(Accuracy) such that it encodes

the relative frequency of each possible level of accuracy.

(7) Deﬁne the conditional probability distribution P(Observation | Accuracy,
Value) such that it encodes the relative frequency of each possible ob-
servation given the level of accuracy and the actual value.

7.2.2 Expert Opinions

The speciﬁcation of the parameters of a probabilistic network is often based on
knowledge elicitation from problem domain experts. Typically, a knowledge
engineer interviews one or more experts in order to assess the values of model
parameters. In some cases when the elicitation of parameters is based on
assessments from a group of experts, it is advantageous that any diﬀerences
in the assessed values are represented explicitly in the model. This is, for
instance, useful when the group of experts are distributed physically and when
the model is developed iteratively.

A conditioning (or auxiliary) variable can select among the opinions of
diﬀerent experts expressed in the probability assessments of a single variable.
The conditioning variable is a parent of the variable of interest and has one
state corresponding to each expert. The prior distribution of the auxiliary
value will assign a weight to the experts represented in the auxiliary variable.
Diﬀerent auxiliary variables need not have the same set of states. The following
example illustrates the modeling technique on a simple example.

Example 7.10. Consider the quantiﬁcation of the Chest Clinic example (Ex-
ample 4.2 on page 68). Assume the model is constructed by elicitation of
knowledge from two experts Bill and John. Consider the elicitation of condi-
tional probability distribution P(Bronchitis | Smoker) and assume that Bill and
John have diﬀerent opinions on this distribution.

To reﬂect the diﬀerent opinions of the experts, we construct the model
structure shown in Figure 7.19 where dom(Experts) = (bill, john) representing
the two experts.

Table 7.13 shows the distribution P(Bronchitis | Smoker, Experts). The dis-
tribution encodes the diﬀerent opinions of the experts on the conditional
probability distribution whereas the prior distribution P(Experts) encodes the
reliability of the experts.

The model captures the opinions of experts Bill and John using the Experts
variable to condition the conditional probability distribution they have diﬀer-
ent opinions on.

200

7 Modeling Techniques

Smoker

Experts

Bronchitis

Fig. 7.19. The variable Experts has one state for each expert.

Experts

Smoker

bill
bill
john
john

false
true
false
true

Bronchitis
true
false

0.7
0.4
0.8
0.3

0.3
0.6
0.2
0.7

Table 7.13. The speciﬁcation of
P(Bronchitis | Smoker, Experts).

the conditional probability distribution

Asia

Experts1

Smoker

Experts2

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 7.20. A graph specifying the independence and dependence relations of the
Asia example.

One expert node is introduced for each conditional probability distribu-
tion elicited from domain expert knowledge. Figure 7.20 illustrates how two
groups of experts have been consulted to elicit the conditional probability
distributions of Bronchitis and Cancer. By introducing multiple expert nodes,
we assume the elicitation of diﬀerent conditional probability distributions to
be independent.

The model in Example 7.10 has an explicit representation of the opinions
of the two experts. In some situations it is desirable not to have an explicit
representation of expert opinions in the model. This can be achieved by elim-
inating the variables representing diﬀerent experts from the model. This is
described in Section 7.2.3.

7.2 Probability Distribution Related Techniques

201

How to Implement This Technique

The expert opinions modeling technique is implemented as follows.

(1) Let P(X | pa(X)) be the conditional probability distribution assessed from a
group of experts (one instance of P(X | pa(X)) is assessed from each expert).
(2) Create a discrete random variable Experts with one state for each expert.
(3) Let Experts be a parent of X.
(4) Deﬁne the prior probability distribution P(Experts) such that it encodes

the reliability of the experts.

(5) Deﬁne the conditional probability distribution P(X | pa(X), Experts) such
that for each state of Experts it encodes the assessment of P(X | pa(X))
given by the corresponding expert.

7.2.3 Node Absorption

Node absorption is the process of eliminating a variable from a model by
arc reversals and barren variable eliminations. Recall that in Section 3.4.1 on
page 52 we illustrated the application of Bayes’ rule as an arc reversal oper-
ation while in Section 5.1.1 on page 111 we considered repeated applications
of arc reversal as an inference process.

The node absorption method may also be a useful tool in the model de-
velopment process. Node absorption may be used to eliminate variables from
a model which for one reason or another should not be included in the ﬁnal
model. If eﬃciency of probabilistic inference in a probabilistic network is of
high priority, it may be worthwhile to eliminate variables that are neither ob-
served nor the target of inference. In Section 5.1.1 we denoted a variable that
is neither an evidence variable nor a target variable as a nuisance variable.

Example 7.11 (Expert Opinions). Consider Example 7.10 on page 199 where
the conditional probability distribution P(Bronchitis | Smoker) has been elicited
from the two experts Bill and John. From the example we know that Bill
and John disagree slightly on the strength of the dependence relation be-
tween Bronchitis and Smoker. This is captured by the graph of Figure 7.19.

For diﬀerent reasons (e.g. political) we would like to eliminate the inter-
mediate variable Experts from the model while maintaining the underlying
dependence relations between the remaining variables. This can be achieved
using node absorption.

Since Experts has Bronchitis as its only child, a single arc reversal operation
is suﬃcient to absorb Experts. Once the arc (Experts, Bronchitis) is reversed,
Experts is barren and can therefore be removed from the graph without chang-
ing the dependence relations between the remaining variables in the graph.

If we assume that we have equal trust in the two experts, then Table 7.14
shows the conditional probability distribution P(Bronchitis | Smoker) after ab-
sorbing Experts from the distribution shown in Table 7.13.

202

7 Modeling Techniques

Smoker

false
true

Bronchitis
true
false

0.75
0.35

0.25
0.65

Table 7.14. The conditional probability distribution P(Bronchitis | Smoker) after
absorbing Experts from the distribution shown in Table 7.13.

The prior distribution P(Experts) can be interpreted as specifying our rel-
ative trust in the two experts. In the example we have used a uniform distri-
bution.

The order in which arcs are reversed may be constrained by the structure of
the graph. That is, the sequence of arc reversals should be performed such that
all intermediate graphs are acyclic. In addition, the order in which variables
are absorbed and arcs are reversed may impact the size of the parent sets in
the resulting graph.

How to Implement This Technique

The node absorption modeling technique is implemented as follows.

(1) Let X be the variable to be eliminated by node absorption.
(2) Let ch(X) be the direct successors of X, i.e., the children of X.
(3) For each Y ∈ ch(X) reverse the link (X, Y) according to the arc reversal

operation. Traverse ch(X) in topological order.

(4) Eliminated X as a barren variable, i.e., simply remove X and incoming

links from the model.

Node absorption may be implemented as a single step operation in probabilis-
tic network editor software.

7.2.4 Set Value by Intervention

An important distinction should be made between a passive observation of
the state of a variable and an active action forcing a variable to be in a
certain state. A passive observation of a variable impacts the beliefs of the
ancestors of the variable whereas an active action enforcing a certain state on
a variable does not under the assumption of a causal ordering (see Section 4.2
on decision making under uncertainty). We refer to this type of active action
as an intervention. When we make a passive observation on a variable this
produces a likelihood on the parents of the variable. This should not be the
case when the value of a variable is set by intervention. The instantiation
of a decision variable in an inﬂuence diagram is an example of this type of
intervention.

7.2 Probability Distribution Related Techniques

203

In some situations it is undesirable to model active actions forcing a vari-
able to be in a certain state as a decision in an inﬂuence diagram. Instead of
modeling the situation using decision variables a simple modeling technique
may be used. The modeling technique is illustrated in Figure 7.21.

I

B

C

A

Fig. 7.21. Modeling the option of setting a value of B by intervention.

In Figure 7.21 we illustrate a situation where the value of the random
variable B may be set by intervention. The causal properties of the exam-
ple are such that the variable A has a causal impact on B which in turn
has a causal impact on C. The variable I captures the property that the
state of variable B may be set by intervention. Assuming Table 7.15(a) shows
the conditional probability distribution P(B | A), then Table 7.15(b) shows the
distribution P(B | A, I).

B

B

A

false

true

I

A

false

true

false
true

0.9
0.2

0.1
0.8

(a)

no intervention
no intervention
false
false
true
true

false
true
false
true
false
true

(b)

0.9
0.2
1
1
0
0

0.1
0.8
0
0
1
1

Table 7.15. (a) The conditional probability distribution P(B | A). (b) The condi-
tional probability distribution P(B | I, A).

This construction of P(B | I, A) implies that C ⊥⊥ A | I = i where i (cid:7)=
no intervention, i.e., setting I to a value diﬀerent from no intervention makes A
and C independent. Thus, if we enforce a certain state on B by selecting a
state of I (diﬀerent from no intervention), then observing C subsequently will
not change the belief in A. In general, the conditional probability distribu-
tion P(B | I, A) may be deﬁned as

204

7 Modeling Techniques

P(B = b | A, I = i) =

⎧
⎪⎨

⎪⎩

P(b | A)
1
0

if i = no intervention
if b = i
otherwise

(7.3)

where dom(I) = dom(B) ∪ {no intervention}.

It is important to notice that when the state of B is observed, the obser-
vation is enforced by setting the state of B whereas if the state of B is set by
intervention, then I is instantiated to the corresponding state. When B is not
observed, I is in the state no intervention.

Example 7.12. Figure 7.22 depicts a simple model for reasoning about a com-
mon medical situation. The model captures the direct causal inﬂuence of ﬂu
on fever and the direct causal impact of fever on sleepiness. These events are
represented by the variables Flu, Fever, andSleepy , respectively.

Aspirin

Flu

Fever

Sleepy

Fig. 7.22. Taking an aspirin forces the fever to a certain level. Subsequent obser-
vations on Sleepy should not change our belief in Flu.

In addition to the aforementioned variables, the model has the vari-
able Aspirin. This variable represents the event that the patient takes an
aspirin to reduce fever to a certain level. Once an aspirin has been taken an
observation on Sleepy will be uninformative with respect to Flu. This behavior
may be enforced as described above.

How to Implement This Technique

The set value by intervention modeling technique is implemented as follows.

(1) Let X be the random variable that may be set by intervention.
(2) Create a random variable I with dom(I) = dom(B) ∪ {no intervention}.
(3) Let I be a parent of X.
(4) Deﬁne the prior probability distribution P(I) such that it encodes the

relative frequency of setting each state of X and no intervention.

(5) Deﬁne the conditional probability distribution P(X | pa(X), I) according to

Equation 7.3.

7.2 Probability Distribution Related Techniques

205

7.2.5 Independence of Causal Inﬂuence

In this section we consider how a special kind of structure within a condi-
tional probability distribution may be exploited to reduce the complexity of
knowledge elicitation from exponential in the number of parents to linear in
the number of parents. The property we consider is known as independence
of causal inﬂuence (Heckerman 1993).

C3

C1

C2

E

Fig. 7.23. The causal inﬂuence of Ci on E is independent of the causal inﬂuence
of Cj on E (for i (cid:3)= j).

In an independence of causal inﬂuence model, the parent variables of a
common child variable interact independently on the child. With a slight
abuse of terms, the parents are sometimes said to be causally independent.
All variables in an independence of causal inﬂuence model are assumed to be
discrete random variables. The common child variable is denoted E and it is
referred to as the eﬀect variable. The parent variables are denoted C1, . . . , Cn
and they are referred to as cause variables or causes, see Figure 7.23.

The cause variables C1, . . . , Cn may cause an abnormality modeled as the
eﬀect variable E to be present at a certain level. The states of the eﬀect
variable E specify diﬀerent levels of the abnormality. The states of E are
ordered in the sense that they represent diﬀerent levels of abnormality and
such that a designated state indicates that the abnormality is absent. Similarly,
each of the causes have an absence state corresponding to no impact on the
eﬀect variable. The principle of an independence of causal inﬂuence model is
that the causal impact of each cause is independent of the causal impact of
all other causes.

In this section we consider the Boolean independence of causal inﬂuence
model known as the Noisy-OR model (Pearl 1988). The Noisy-OR model is a
commonly used example of a model for local conditional probability distribu-
tions that depends on fewer parameters than the total number of combinations
of fa(E) (Laskey 1993).

In the Noisy-OR model, the eﬀect variable E and the variables C1, . . . , Cn
are Boolean variables (i.e., binary discrete random variables with states false
and true). The designated state is false. The causal impact of each cause Ci is
independent of the causal impact of any other cause Cj for i (cid:7)= j. Figure 7.24
illustrates two diﬀerent ways in which this independence may be modeled ex-
plicitly. Each variable Ei has the same state space as E and it captures the

206

7 Modeling Techniques

C3

E3

C1

E1

C2

E2

E

C1

E1

E(cid:3)

C2

E2

E(cid:3)(cid:3)

C3

E3

E

Fig. 7.24. Two model structures for capturing independence of causal inﬂuence.

contribution from cause Ci to the value of E. Each variable Ei is referred
to as a contribution variable and P(Ei | Ci) captures the causal impact of Ci
on E. In the left part of the ﬁgure, the total impact on the eﬀect variable
is the disjunction of all causes whereas in the right part of the ﬁgure the
temporal transformation modeling technique has been applied such the total
impact is determined based on a pairwise combination of causes. The condi-
tional probability distribution P(E | E1, . . . , En) is deﬁned as disjunction and
so are P(E(cid:2)(cid:2) | E(cid:2), E2) and P(E | E(cid:2)(cid:2), E3). The eﬀect variable E is in state true when
at least one contribution variable is in state true.

The causal impact of a cause Ci is the probability P(E = yes | Ci = yes)
whereas P(E = yes | Ci = no) = 0. We denote P(E = yes | Ci = yes) = 1 − qi
where qi is referred to as the inhibitor probability, see Figure 7.25.

In some domains there may be a need to have a leak probability 1 − q0 rep-
resenting the probability of E = true when all causes C1, . . . , Cn are absent
where q0 is known as the default inhibitor. A leak probability may be imple-
mented by introducing as a separate Boolean cause variable C0 instantiated
to state true. The leak variable C0 represents the set of causes are not modeled
explicitly in the network. In this way the leak variable can be used to enforce
the closed-world assumption. The leak probability is assigned as the proba-
bility that the eﬀect will occur in the absence of any of the causes C1, . . . , Cn
that are explicitly represented in the network (Pradhan, Provan, Middleton
& Henrion 1994).

Let us consider how the reduction from exponential to linear in the number
of parents is achieved. We may consider the conditional probability distribu-
tion P(Xi | pa(Xi)) as parameterized over a vector Θi of parameters θijk with
one component for each possible value of Xi and combination of pa(Xi) such
that

P(xijk | πij, Θi) = θijk(cid:6)

,

k θijk

7.2 Probability Distribution Related Techniques

207

q1

C1

E1

C2

E2

q2

E

Fig. 7.25. One inhibitor probability for each parent Ci of the eﬀect E.

where πij is the jth conﬁguration of pa(Xi). The above formula is an unre-
stricted local conditional probability distribution. The distribution depends
on as many parameter vectors as there are combinations of fa(Xi).

In an independence of causal inﬂuence model, the conditional probability
distribution P(Xi | pa(Xi)) can be speciﬁed using a parameter Θi that grows
in size linearly in the number of parents pa(Xi).

For the Noisy-OR model it is straightforward to determine the conditional
probability distribution P(E | pa(E), ΘE) given a speciﬁc parameter vector ΘE
from the Noisy-OR model

P(E = true | X1 = x1, . . . , Xn = xn, ΘE) = 1 − θ0

(cid:5)

θi,

Xi=true

where θ0 is the default inhibitor, θi is the inhibitor for Xi, and ΘE =
{θ0, θ1, . . . , θn}. From this it follows that

P(E = false | X1 = x1, . . . , Xn = xn, ΘE) =θ 0

(cid:5)

θi.

Xi=true

The following example illustrates how independence of causal inﬂuence

may be exploited to simplify the knowledge elicitation process.

Example 7.13 (Sore Throat). A physician wants to diagnose her patients with
respect to diseases causing a sore throat. For simplicity of the example we
assume the physician is mainly interested in modeling the causal eﬀect of cold
and angina on sore throat. In addition to cold and angina there are other
potential causes of a sore throat. These other causes are not to be represented
explicitly in the model though.

Thus, initially the model consists of three variables SoreThroat, Angina,
and Cold. All variables are Boolean with states false and true. Figure 7.26
shows the structure of the model.

The synergy between Angina and Cold with respect to their combined
eﬀect on SoreThroat is assumed to be minimal. Thus, we may use the Noisy-
OR model to specify and represent the conditional probability distribution

208

7 Modeling Techniques

Angina

Cold

SoreThroat

Fig. 7.26. Sore throat may be caused by both angina and cold.

of SoreThroat given Angina and Cold where all other implicit causes of sore
throat are captured by the background event.

First, assume the inhibitor probabilities are qAngina = 0.1 and qCold = 0.2
while the default inhibitor is one (i.e., there are no other causes of sore throat).
The combined impact of Angina and Cold on SoreThroat is computed as

P(SoreThroat = false | Angina = false, Cold = false, ΘE) =1,
P(SoreThroat = false | Angina = false, Cold = true, ΘE) =0.2,
P(SoreThroat = false | Angina = true, Cold = false, ΘE) =0.1,
P(SoreThroat = false | Angina = true, Cold = true, ΘE) =0.1

∗ 0.2.

Table 7.16 shows the distribution P(SoreThroat | Angina, Cold).

Angina

Cold

SoreThroat
true
false

false
false
true
true

false
true
false
true

1
0.2
0.1
0.02

0
0.8
0.9
0.98

Table 7.16. The conditional probability distribution P(SoreThroat | Angina, Cold)
with a zero background event probability.

Next, assume the background inhibitor is 0.95 (i.e., the probability that
sore throat is caused by the background event (other causes not represented
in the model) is 0.05 such that q0 = 0.95). The combined impact of Angina,
Cold, and the background event on SoreThroat given is computed as:

P(SoreThroat = false | Angina = false, Cold = false, ΘE) =0.95,
P(SoreThroat = false | Angina = false, Cold = true, ΘE) =0.95
P(SoreThroat = false | Angina = true, Cold = false, ΘE) =0.95
P(SoreThroat = false | Angina = true, Cold = true, ΘE) =0.95

∗ 0.2,
∗ 0.1,
∗ 0.1 ∗ 0.2.

Table 7.17 shows the distribution P(SoreThroat | Angina, Cold).

7.2 Probability Distribution Related Techniques

209

Angina

Cold

false
false
true
true

false
true
false
true

SoreThroat
true
false

0.95
0.19
0.095
0.019

0.05
0.81
0.905
0.981

Table 7.17. The conditional probability distribution P(SoreThroat | Angina, Cold)
with a non-zero background event probability.

By exploiting the independence of causal inﬂuence between Cold and Angina
the number of parameters to elicit has decreased from four to two. This may
seem to be an insigniﬁcant reduction. However, if we consider the case where
ten diﬀerent causes of SoreThroat are to be represented explicitly in the model,
then the number of parameters to elicit is reduced from 1024 to ten.

The beneﬁt of independence of causal inﬂuence becomes even more appar-
ent when the eﬀect has a large number of causes as the number of parameters
grows linearly with the number of causes. The advantage of independence
of causal inﬂuence is an exponential decrease in the number of parameters
to elicit. The disadvantage of independence of causal inﬂuence is that any
synergy between causes (with respect to their combined impact on the eﬀect
variable) is ignored.

Using independence of causal inﬂuence in conjunction with parent divorc-

ing may reduce the complexity of inference exponentially.

Srinivas (1993) discusses a generalization of the Noisy-OR model to non-
binary variables. Pradhan et al. (1994) and Diez (1993) have considered in
detail the Noisy-MAX model as a generalization of the Noisy-OR model to
the case in which each variable is allowed to have a ﬁnite discrete state space.
In the Noisy-MAX model, the max operator speciﬁes the combination of the
cause variables. In the Noisy-MAX model the probability distribution of the
eﬀect variable E given its parent causes can be expressed as:

P(E | C1, . . . , Cn) =

(cid:10)

n(cid:5)

P(Ei | Ci).

max(E1,...,En)

i=1

One prerequisite for using the Noisy-MAX model is that the variable state
spaces are ordered as, for example (absent, mild, moderate, severe). In addition,
each cause variable must have a distinguished (or absent) state designating an
inﬂuence of the cause on the eﬀect variable.

How to Implement This Technique

The independence of causal inﬂuence modeling technique is implemented as
follows.

210

7 Modeling Techniques

(1) Let {C1, . . . , Cn} be the set of causes of eﬀect variable E.
(2) Assume the impact of C1, . . . , Cn on E can be modeled as a Noisy-OR

model. Hence, C1, . . . , Cn and E are Boolean variables.

(3) Create one Boolean contribution variable Ei for each Ci ∈ {C1, . . . , Cn}.
(4) Let each Ei be a child of Ci and a parent of E.
(5) For each Ci, deﬁne the conditional probability distribution P(Ei | Ci) such
that P(Ei = true | Ci = true) is the probability of E = true given Ci = true
and Cj = false for i (cid:7)= j and P(Ei = false | Ci = false) = 1.

(6) Deﬁne the conditional probability distribution P(E | E1, . . . , En) as disjunc-

tion (i.e., or).

Once the independence of causal inﬂuence modeling technique has been ap-
plied, it may be an advantage to use the parent divorcing modeling technique
(see Section 7.1.1) to reduce the number of parents of the eﬀect variable.

7.2.6 Mixture of Gaussian Distributions

When modeling problem domains with continuous entities a decision on how
to represent the continuous entities in a network has to be made. One option is
to represent a continuous entity as a discrete variable with states representing
intervals for the continuous entity. For instance, we may choose to represent
temperature as a discrete variable with three states low, medium and high. In
other cases we may choose to approximate the distribution of a continuous
entity using the conditional linear Gaussian distribution.

A third option is presented in this section. The third option is to approx-
imate the continuous distribution of a variable using a mixture of Gaussian
distributions (MoGs). This option is interesting as it is well known that mix-
tures of Gaussian distributions can approximate any probability distribution;
see Shenoy (2006) who cites Titterington, Smith & Makov (1995).

An MoGs is a sum of Gaussian distributions where each component is
weighted by a number between zero and one such that the sum of the weights
is one, i.e., the weights are probabilities. Assume X is a continuous variable
with a probability distribution that can be approximated using the MoGs

f(x) =

n(cid:10)

i=1

(cid:6)

pi · N(αi, γi),

(7.4)

where αi, γi ∈ R and 0 ≤ pi ≤ 1 such that
and weight of the i’th component in the mixture.

i pi = 1 are the mean, variance,

To approximate the probability distribution on X using Equation 7.4, a
selector variable S with n states is introduced as a parent of X. The variable X
becomes a continuous variable with a conditional linear Gaussian distribution,
see Section 4.1.2. Each state si of S corresponds to one component pi·N(αi, γi)
in the mixture. The prior distribution on S is P(S = si) = pi while X | si ∼
N(αi, γi). Figure 7.27 illustrates the use of the MoGs modeling technique on
the distribution for X.

7.2 Probability Distribution Related Techniques

211

S

X

Fig. 7.27. Approximation of a continuous distribution using the MoGs modeling
technique.

Using MoGs the network becomes either a CLG Bayesian network or a

CLQG inﬂuence diagram.
Example 7.14. A Gamma(2, 2) distribution can, for instance, be approximated
using a two-component mixture of MoGs such as

f(x) = 0.609 · N(4.57, 2.37) + 0.391 · N(1.93, 1.12).

(7.5)

Figure 7.28 shows the result of approximating the Gamma(2, 2) distribu-

tion with the above two-component mixture of Gaussian distributions.

0.2

0.18

0.16

0.14

0.12

0.1

0.08

0.06

0.04

0.02

0

0

Gamma(2,2)
2-component MoG

2

4

6

8

10

12

14

Fig. 7.28. A two-component mixture approximation of the Gamma(2, 2) distribu-
tion.

The two-component approximation in Equation 7.5 produces a reasonable
ﬁt to the Gamma(2, 2) distribution. Whether or not the ﬁt is of suﬃcient
quality depends on the problem domain and application.

The MoGs modeling technique introduces a discrete random variable with
one state for each component in the mixture. Approximating continuous dis-
tributions using the MoGs modeling technique is not necessarily simple and
may produce networks where belief updating is computationally intensive.

212

7 Modeling Techniques

How to Implement This Technique

The mixture of Gaussian distributions modeling technique is implemented as
follows.

(1) Let X be the variable of the probability distribution to approximate.
(2) Assume the probability distribution of X can be approximated using the

MoGs

f(x) =

n(cid:10)

i=1

pi · N(αi, γi).

(3) Create a discrete variable S with n states.
(4) Let S be the parent of X in the network with P(S = si) = pi.
(5) For each state si of S set X | si ∼ N(αi, γi).

The process of identifying the number of components as well as the para-

meterization and weight of each component is not trivial.

In this section we have considered the case of approximating the prior dis-
tribution of a continuous variable with no parents. Shenoy (2006) presents a
methodology for belief updating in hybrid Bayesian networks (i.e., Bayesian
networks with both continuous and discrete variables and with no restrictions
on the model structure) based on approximating distributions using MoGs.
Shenoy (2006) gives examples on how to approximate diﬀerent types of distrib-
utions using MoGs. This includes approximating the distribution of a discrete
child of a continuous variable. Poland (1994) has presented an algorithm for
identifying MoGs using the EM algorithm (see Section 8.3.1).

7.3 Decision Related Techniques

In this section we consider modeling techniques related to the speciﬁcation
of a decision problem as an inﬂuence diagram. In particular we consider how
to model test decisions, how to exploit missing informational links, how to
model variables which may or may not be observed prior to a decision, how
to force a decision variable to be in a state corresponding to a hypothesis of
maximum probability, and how to enforce constraints on decision options.

7.3.1 Test Decisions

As part of a decision problem, a decision maker may be faced with the option
to perform some kind of test. Performing the test produces a test result which
is modeled as a random variable with states corresponding to the possible test
results in an inﬂuence diagram. In addition to the random variable represent-
ing the test result, the inﬂuence diagram has a decision variable with states
representing whether or not the test is performed. If the test is performed,
then the result of the test (usually) becomes available to the decision maker.

7.3 Decision Related Techniques

213

If the test, on the other hand, is not performed, then no test result becomes
available. The inﬂuence diagram may also have a utility function associated
with the test specifying the cost of the test. Solving the inﬂuence diagram will
produce a policy for when to perform the test.

The random variable representing the test result may be an informational
parent of another decision variable in the inﬂuence diagram. If the test re-
sult variable is an informational parent of another decision in the inﬂuence
diagram, then the variable must be observed prior to this decision. This, how-
ever, contradicts the fact that the test result is available only when the test is
performed. In this section we consider two examples that illustrate diﬀerent
approaches to alleviating this contradiction.

Example 7.15 (Oil Wildcatter (Raiﬀa 1968)). Example 4.5 on page 77 consid-
ers an oil wildcatter about to decide whether or not to drill for oil at a speciﬁc
site. Prior to her decision on whether or not to drill for oil the oil wildcatter
has the option to take seismic soundings to better understand the geological
structure of the site. The structure of the Oil Wildcatter model (Figure 4.5
on page 77) is repeated in Figure 7.29 for convenience.

Test

Oil

U2

U1

Seismic

Drill

Fig. 7.29. The test result is only available after a test is performed.

There are two informational links in the graph of Figure 7.29. The link
(Test, Drill) from Test to Drill and the link (Seismic, Drill) from Seismic to Drill
are both informational links. The former link speciﬁes whether or not the oil
wildcatter decided to take seismic soundings prior to the drill decision. On
the other hand, the latter link speciﬁes that the value of Seismic is also known
when making the drill decision. This cannot, however, be the case when the
test is not performed.

We consider two alternative options to correct this problem. Both options
consider the speciﬁcation of the conditional probability distribution P(Seismic |
Oil, Test).

One option is to specify P(Seismic | Oil, Test = no) as a uniform distribution.
The corresponding distribution is shown in Table 7.18. If the oil wildcatter
decides not to perform the test, then any observation on Seismic will not eﬀect
the belief in Oil (the likelihood potential over Oil induced by the observation
on Seismic assigns equal likelihood to all states of Oil due to the uniform
distribution).

214

7 Modeling Techniques

Test Oil

closed

no
no
no
yes
yes
yes

dry
wet
soaking
dry
wet
soaking

0.1
0.3
0.5
1/3
1/3
1/3

Seismic
open

diﬀuse

0.3
0.4
0.4
1/3
1/3
1/3

0.6
0.3
0.1
1/3
1/3
1/3

Table 7.18. The conditional probability distribution P(Seismic | Test, Oil).

The other option is to introduce an additional no result state in Seismic.
The distribution P(Seismic | Oil, Test = no) is speciﬁed such that not perform-
ing the test instantiates Seismic to no result. The corresponding distribution
is shown in Table 7.19. If the oil wildcatter decides not to perform the test,
then Seismic is instantiated to no result.

Test Oil

closed

no
no
no
yes
yes
yes

dry
wet
soaking
dry
wet
soaking

0.1
0.3
0.5
0
0
0

Seismic
open

diﬀuse

no result

0.3
0.4
0.4
0
0
0

0.6
0.3
0.1
0
0
0

0
0
0
1
1
1

Table
where Seismic has a no result state.

7.19. The

conditional probability distribution P(Seismic | Test, Oil)

The latter option is semantically more clear than the former option in
the sense that it is easily understood that Seismic should be instantiated
to no result when the test is not performed. On the other hand, the lat-
ter option increases the complexity of the model by introducing the addi-
tional no result state in the Seismic variable.

Example 7.16 (Aspirin (Jensen 1996)). Example 7.12 on page 204 describes
a simple model for reasoning about the eﬀect of ﬂu on fever and the eﬀect
of fever on sleepiness. Here we consider this example as a decision problem
where the decision maker has to decide on whether or not to take an aspirin.
The level of fever may be reduced by taking an aspirin. This is represented
by the decision variable A. Prior to taking an aspirin there is the option to
measure temperature. This option is indicated using the triangular-shaped
node with label T in Figure 7.30.

7.3 Decision Related Techniques

215

Flu

Fever

T

A

Sleepy

Fig. 7.30. Prior to deciding on whether or not to take an aspirin, we may measure
the temperature.

T

Temp

A

Flu

Fever

Fever∗

Sleepy

Fig. 7.31. The test for temperature is modeled as a decision value with a random
variable as a child specifying the result of the test.

The test option indicated in Figure 7.30 by the triangular-shaped node
may be represented using three nodes as indicated in Figure 7.31. The three
nodes represent decision variable T and random variables Temp, and Fever∗.
The decision variable T represents whether or not the temperature is mea-
sured. The random variable Temp speciﬁes the temperature measured and
the random variable Fever∗ represents the level of fever after taking an aspirin
while the random variable Fever represents the level of fever prior to taking
an aspirin.

How to Implement This Technique

The test decisions modeling technique is implemented as follows.

(1) Let P be a discrete random variable representing the phenomenon that

may be measured by a test.

(2) Create a decision variable T with two states no test and test corresponding

to not performing and performing the test, respectively.

(3) Create a discrete random variable R representing the result of the test as

a child of D and P.

(4) Let R have one state for each possible test result and the state no result
representing the event that the test is not performed, i.e., T = no test.
(5) Deﬁne the conditional probability distribution P(R | P, T ) such that P(R =
no result | P, T = no test) =1 and P(R | P, T = test) encodes the probability
of each possible test result given the actual value of phenomenon P.

216

7 Modeling Techniques

Instead of using the state no result to specify no test result, a uniform dis-
tribution may be used. Furthermore, the modeling technique may be used in
combination with the measurement uncertainty modeling technique described
in Section 7.2.1.

7.3.2 Missing Informational Links

Informational links of an inﬂuence diagram deﬁne the points at which informa-
tion is assumed to become available to the decision maker. An informational
link (X, D) from a random variable X to a decision variable D speciﬁes that
the value of X is known to the decision maker when the decision correspond-
ing to decision variable D is made. The informational links of an inﬂuence
diagram induce a partial order over the random variables relative to the de-
cision variables. The partial order over random variables is important for the
solution of an inﬂuence diagram. In essence the partial order over random vari-
ables induces a constraint on the order in which variables may be eliminated
when solving the decision model; see Section 5.2 for details on solving decision
models. Thus, correct speciﬁcation of informational links is imperative.

When the inﬂuence diagram has only a single decision, then informational
links can be ignored if the inﬂuence diagram is solved for each set of evidence.
That is, the inﬂuence diagram is solved prior to making the decision each
time the inﬂuence diagram is used. This implies that the optimal strategy
is only implicitly available to the decision maker as the optimal decision is
determined for each evidence scenario prior to making the decision. This can
be particularly useful if the optimal policy for the decision has a large state
space.

Example 7.17. In Example 7.6 on page 192 we considered the task of moni-
toring the pregnancy state of a cow. Assume that in addition to the blood
and urine tests we have the option to make a scanning of the cow. A scanning
of the cow will produce a more accurate estimation of the pregnancy of the
cow. The option to scan the cow introduces the variable Sc with states false
and true as a child of Pr.

The pregnancy state of the cow is estimated six weeks after the initial
insemination of the cow. Based on the observations and the probability dis-
tribution of the pregnancy state of the cow, we need to make a decision on
whether or not to repeat the insemination of the cow or to wait for another
six weeks before estimating the pregnancy state of the cow. This decision
introduces the decision variable D with states wait and repeat.

The cost of repeating the insemination is 65 no matter the pregnancy state
of the cow. If the cow is pregnant, and we wait, it will cost us nothing, but
if the cow is not pregnant, and we wait, it will cost us another 30 units plus
the eventual repeated insemination (that makes a total of 95 for waiting).
A blood test has the cost 1 and a urine test has the cost 2. This deﬁnes a
utility function over variables Pr and D, see Table 7.20.

7.3 Decision Related Techniques

217

Pr

D

false wait
false
true
true

−95
repeat −65
wait
repeat −65

0

Table 7.20. The utility function U(Pr, D).

Figure 7.32(a) shows the resulting structure of the model. Notice that

there are no informational links in the structure.

Pr

HS

Sc

BT

UT

U

D

Pr

HS

Sc

BT

UT

U

D

(a)

(b)

Fig. 7.32. (a) Informational links are unnecessary in inﬂuence diagrams with a
single decision. (b) Informational links only clutter up the graph.

Since the structure in Figure 7.32(a) does not contain any informational
links, it does not properly reﬂect the test options available prior to deciding
on whether or not to repeat the insemination.

To capture the three test options we may introduce an additional no test
state in each of the test result variables (BT, UT, and Sc). This would produce
the structure shown in Figure 7.32(b).

Alternatively, we may use the fact that the decision problem contains a
single decision variable. This allows us to leave out informational links and
instantiate the random variables observed prior to the decision as the ob-
servations are made. This leaves us with Figure 7.32(a) instead of the more
cluttered Figure 7.32(b).

When informational links are included in the inﬂuence diagram the solu-
tion will identify a decision policy specifying an optimal decision option for
each conﬁguration of the parents of the decision. Thus, the inﬂuence diagram
is solved once and oﬀ-line in the sense that the inﬂuence diagram is solved
before the decision maker has to make a decision and before any observations
are made. On the other hand, it is necessary to resolve the inﬂuence diagram
each time the decision maker has to make the decision when informational

218

7 Modeling Techniques

links are not included in the network. The solution process identiﬁes an op-
timal decision option for the speciﬁc set of observations made prior to the
decision. The inﬂuence diagram is solved on-line in the sense that the inﬂu-
ence diagram is solved when the decision maker has to make the decision and
after observations have been made. Solving the inﬂuence diagram on-line is
often a signiﬁcantly simpler task than solving it oﬀ-line and may be the only
option when the inﬂuence diagram is complex.

How to Implement This Technique

The missing informational links modeling technique is implemented as follows.

(1) Let D be the decision under consideration.
(2) Assume observations ε have been made prior to making decision D

where pa(D) ⊆ X(ε).

(3) Insert ε as evidence and solve the inﬂuence diagram.
(4) The expected utility associated with each state d of D is EU(d | ε), i.e.,

the expected utility of decision option d given observations ε.

The above steps should be repeated each time observations are made prior to
deciding on D.

7.3.3 Missing Observations

The structure of an inﬂuence diagram induces a partial order on the random
variables of the model relative to the decision variables of the model. The
partial order is induced by the informational links of the graph of the inﬂuence
diagram. An informational link (X, D) from a node representing a random
variable X to a node representing a decision variable D speciﬁes that the
value of X is observed when decision D is to be made. That is, the value of X
is always observed prior to decision D.

Figure 7.33(a) illustrates a typical dilemma a knowledge engineer may be
faced with when representing a decision problem as an inﬂuence diagram.
In some situations the random variable X is observed prior to the decision
represented as D and in other situations it is not observed prior to making
decision D. In this section we describe a modeling technique for solving the
dilemma where a random variable X may or may not be observed prior to a de-
cision D. This is a typical and frequently occurring situation when considering
decision problems with sensor readings or other similar types of observations,
which may, for some reason, be missing or lost.

Figure 7.33(b) illustrates the solution to the dilemma. An auxiliary vari-
able O is introduced as a child of X and a parent of D. The random variable O
has the state space of X extended with one additional state, e.g., named none.
Each state o ∈ dom(O) corresponding to state x ∈ dom(X) represents an
observation of X to the state x while the additional state none represents the
event that X is not observed. The conditional probability distribution P(O | X)

7.3 Decision Related Techniques

219

X

X

D

D

X

O

D

(a)

(b)

Fig. 7.33. (a) In some situations X is observed prior to D while in others it is
not. (b) By introducing an additional variable, we capture the situation where an
observation on X may or may not be available.

is constructed such that P(O = o | X = x) = p and P(O = none | X = x) = 1 − p
where p speciﬁes the probability that the observation on X is made when X
is in state x. The following example illustrates the use of this modeling tech-
nique.

Example 7.18. In Example 4.5 on page 77 the oil wildcatter has the option
to take seismic soundings prior to the drill decision. In this example we will
assume that the oil wildcatter is not in full control of the test option. This im-
plies that the test event should be modeled as a random variable. Figure 7.34
shows the resulting structure.

Test

Oil

U2

U1

Seismic

Drill

Fig. 7.34. The observation on Seismic is missing when the test is not performed.

The dashed link from Seismic to Drill indicates that Seismic is only observed
when the test is performed. This property can be captured by the approach
described above. Figure 7.35 shows the structure which captures the situation
where the result of seismic soundings may not be available.

Seismic

Obs

Drill

Fig. 7.35. This graph captures the situation where the result of seismic soundings
may not be available.

220

7 Modeling Techniques

The conditional probability distribution of Obs is shown in Table 7.21.
The variable Obs has one state for each state of Seismic and one additional
state none representing the event that no result is available. The table speciﬁes
the probability that the result of seismic soundings is available to be 0.9.

Obs

Seismic

closed

open

diﬀuse

none

closed
open
diﬀuse

0.9
0
0

0
0.9
0

0
0
0.9

0.1
0.1
0.1

Table 7.21. The conditional probability distribution P(Obs | Seismic).

The variable Obs is always observed. Either it instantiates Seismic to the
state representing the seismic soundings result or it carries no information on
the test result.

How to Implement This Technique

The missing observations modeling technique is implemented as follows.

(1) Let X be the discrete random variable that may or may not be observed

prior to decision D.

(2) Create a discrete random variable O with state space dom(O) = dom(X)∪
{none} representing the observation on X when it is observed and none
when it is not.

(3) Let X be the parent of O and let O be a parent of D.
(4) Deﬁne the prior probability distribution P(O | X) such that P(O = o | X =
x) = p and P(O = none | X = x) = 1 − p where p speciﬁes the probability
that the observation on X is made when X is in state x.

(5) Instantiate O to the state of X when X is observed and instantiate O to

the state none when X is not observed.

7.3.4 Hypothesis of Highest Probability

An inﬂuence diagram is useful for solving problems of decision making under
uncertainty. The variables of an inﬂuence diagram consist of a mixture of
random variables and decision variables. The random variables are used for
representing uncertainty while the decision variables represent entities under
the full control of the decision maker. The state of a random variable may be
observable or hidden while the state of a decision variable is under the full
control of the decision maker.

As indicated above there is a fundamental diﬀerence between random vari-
ables and decision variables. Situations exist, however, where it is useful to

7.3 Decision Related Techniques

221

H

D

U

Fig. 7.36. Decision D selects a hypothesis of maximum probability.

have the decision maker select a decision option corresponding to the state
of a random variable. In a medical diagnosis situation, for instance, it may
be necessary to have the model suggest the most likely diagnosis as the dis-
ease with the maximum probability where the presence or absence of diseases
are modeled as random variables. Figure 7.36 illustrates a simple modeling
technique for representing this situation. Let D be the discrete decision vari-
able under the full control of the decision maker and let H be the hypothe-
sis variable such that D and H have the same (or equivalent) state spaces,
i.e., dom(D) = dom(H). The goal is to assign the maximum expected utility
to the decision option d of D corresponding to the hypothesis h of H with
maximum probability. This is achieved by adding a utility function U with
domain dom(U) = {D, H} assigning utilities to conﬁgurations of H and D as
(cid:16)

U(h, d) =

if h = d
1
0 otherwise.

That is, all conﬁgurations where the decision variable D and the hypothesis
variable H are in the same state are assigned the value one, while all remain-
ing conﬁgurations are assigned the value zero. In eﬀect each state of D has
expected utility corresponding to (a linear transformation of) the probability
of the hypothesis. Since inﬂuence diagrams are solved by selecting the decision
option with maximum expected utility, the optimal decision policy for D will
select a hypothesis with maximum probability.

H1

H2

U

H3

D

Fig. 7.37. Decision D selects a hypothesis of maximum probability.

In the general case each hypothesis h may be a conﬁguration over a set of
variables such that the utility function has more than one hypothesis variable
as parent. Figure 7.37 illustrates this situation.

222

7 Modeling Techniques

Example 7.19. In the Chest Clinic example (Example 4.2 on page 68) a physi-
cian is diagnosing her patients with respect to lung cancer, tuberculosis, and
bronchitis based on observations of symptoms and possible causes of the dis-
eases.

Assume the physician would like to select the single diagnosis with highest
probability. Figure 7.38 shows the structure of a model where the decision
variable D selects the disease hypothesis with highest probability. The decision
variable D has states bronchitis, cancer, and tuberculosis.

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

U

D

Fig. 7.38. Selecting a disease hypothesis with highest probability.

The utility function U(T, L, B, D) encodes the behavior of the model and

it is speciﬁed as

U(T, L, B, D) =

⎧
⎪⎪⎪⎨
⎪⎪⎪⎩

1 if B = yes, L = no, T = no and D = bronchitis
1 if B = no, L = yes, T = no and D = cancer
1 if B = no, L = no, T = yes and D = tuberculosis
0 otherwise.

This model will enforce the expected utility function over D to assign the
hypothesis with the highest probability with the maximum expected utility.

How to Implement This Technique

The hypothesis of highest probability modeling technique is implemented as
follows.

(1) Let H be the random variable for which the hypothesis (i.e., state) of

highest probability is to be selected.

(2) Create a decision variable D with the same state space as H, i.e., such

that dom(D) =dom(H).

(3) Create a utility function U with D and H as its parents.

7.3 Decision Related Techniques

223

(4) Deﬁne the utility function U(H, D) such that

(cid:16)

U(h, d) =

1 if h = d
0 otherwise

where h and d are states of H and D, respectively.

7.3.5 Constraints on Decisions

One of the underlying assumptions of representing and solving a decision
making problem with uncertainty using inﬂuence diagrams is that the decision
maker is in full control of her decision options. It is, however, common that a
decision making problem is subject to certain constraints on the decisions (and
random) variables. We consider the situation where certain conﬁgurations of
decision variables are illegal in the sense that such conﬁgurations should never
be optimal.

There are two alternatives to enforcing constraints on decision options.
The basic idea of the ﬁrst alternative is to assign an inﬁnitely large negative
value to conﬁgurations of decision options that are illegal. Since inﬂuence
diagrams are solved by maximizing the expected utility, decision options with
inﬁnitely large negative expected utilities will not be chosen.

It is not possible to specify that a conﬁguration of variables has inﬁnitely
large negative expected utility. Instead of using an inﬁnitely large negative
value we may use zero (or a very large negative value). This implies that it may
be necessary to make a linear utility transformation to avoid zero expected
utilities for any conﬁguration which is not illegal. This transformation of the
utility function will preserve the optimal policy.

The second alternative is to use an extension of the constraints modeling
technique of Section 7.1.4 to the case of inﬂuence diagrams. Using constraints
we are able to ensure that illegal conﬁgurations are avoided. Using constraints
we assign zero probability to conﬁgurations of variables that are illegal. Since
inﬂuence diagrams are solved by maximizing expected utility we need to make
sure that only illegal conﬁgurations have expected utility zero and no other
conﬁguration has lower or equal expected utility. This can be achieved by a
linear transformation of the utility function such that all utilities in the model
are positive except for conﬁgurations that are illegal.

Example 7.20. Assume that two decisions D1 and D2 specify two diﬀerent
points in time where the decision maker can choose to sell an old car that
needs repair. If both decisions are to keep the car, then a repair cost of is
induced. If the car is sold at decision D1, then it is not an option to sell the
car at decision D2.

This implies that options available for the decision maker at decision D2
are constrained by the decision made at decision D1. This property can be
encoded as a constraint over D1 and D2 as illustrated in Figure 7.39 with the
distribution P(C | D1, D2) as speciﬁed in Table 7.22.

224

7 Modeling Techniques

D1

D2

C

Fig. 7.39. A constraint on conﬁgurations of decisions D1 and D2.

C

D1

D2

oﬀ

on

keep
keep
sell
sell

keep
sell
keep
sell

0
0
0
1

1
1
1
0

Table 7.22. The conditional probability distribution P(C | D1, D2).

In order to avoid problems related to decision options having zero expected
utility due to illegal events, a linear transformation of the utility function can
be made. In the example we may add a constant greater than the numerical
value of the cost of repairing the car to all utilities. This will force all utilities
to be positive and zero expected utility to be assigned to illegal conﬁgurations
only.

The constraint is enforced by instantiating C to on.

In the example we assume that D1 and D2 are temporally ordered in the
enclosing model, i.e., decision D1 is made prior to decision D2. This assump-
tion has no impact on the model.

How to Implement This Technique

The constraints on decisions modeling technique is implemented as follows
(assuming that we use constraints as opposed to large negative utility values
to encode the constraint).
(1) Let {D1, . . . , Dn} be the set of decisions to be constrained.
(2) Create a binary constraint node C with one state oﬀ representing all illegal
conﬁgurations and one state on representing all legal conﬁgurations.

(3) Add each D ∈ {D1, . . . , Dn} as a parent of C.
(4) Deﬁne the conditional probability distribution P(C | D1, . . . , Dn) such that
all illegal conﬁgurations of {D1, . . . , Dn} map to the state oﬀ and all legal
conﬁgurations of {D1, . . . , Dn} map to the state on.

(5) Instantiate C to state on enforcing the constraint.

If a linear transformation of the utility function is required, this should be

performed subsequently.

Exercises

225

7.4 Summary

In this chapter we have introduced modeling methods and techniques for
adjusting the structure of a probabilistic network, for the speciﬁcation of con-
ditional probability distributions and for inﬂuence diagram models.

The construction of a probabilistic network may be a labor-intensive task
to perform. A sequence of steps related to knowledge acquisition and repre-
sentation is performed in the process of constructing a probabilistic network.
The steps include identifying variables, identifying states of variables, identi-
fying and encoding dependence and independence relations among variables
as an acyclic, directed graph and eliciting the quantiﬁcation of the model as
required by the structure.

In Chapter 8 we discuss methods for data-driven modeling.

Exercises

Exercise 7.1. Assume that the causal inﬂuences of Angina, Cold, and Flu
on SoreThroat can be assumed to be independent. Furthermore, assume that
there is a background event that can cause the throat to be sore.

The probability of a sore throat being caused by other causes is 0.05
whereas the inhibitor probabilities for Angina, Cold, and Flu are 0.3, 0.4, and
0.25, respectively. The prior probabilities for Angina, Cold, and Flu are 0.4,
0.1, and 0.25, respectively.

(a) Construct a Bayesian network model representing the causal impact on

SoreThroat.

(b) Compute the prior probability of SoreThroat.
(c) Apply the parent divorcing modeling technique to simplify the model.

Exercise 7.2. Consider the Asia network in Figure 7.20 on page 200.

(a) Perform a sequence of node absorption operations to remove the vari-

ables Experts1 and Experts2.

(b) Assume bronchitis can be cured by taking a certain type of medicine.

Extend the network accordingly.

Exercise 7.3. Consider the Naive Bayes network for classifying mushrooms in
Figure 7.15 on page 195. Assume no odor is perfectly observed, whereas almond
is mistakenly observed as spicy in 10% of the cases while spicy is mistakenly
observed as almond in 5% of the cases. Extend the network accordingly.

Exercise 7.4. Consider the Asia network in Figure 4.2 on page 69, see Ex-
ample 4.2 on page 68.

(a) Perform a node absorption operation to remove the variable Tub or cancer.
(b) Apply the parent divorcing technique on the resulting network.

226

7 Modeling Techniques

Exercise 7.5. Assume appendicitis may cause fever, pain, or both. If a pa-
tient has appendicitis, then the patient will have an increased white blood
cells count. When a patient potentially has appendicitis, the physician may
choose to carry out surgery right away or wait for a blood test result. Fever
and pain are observed.

The prevalence of appendicitis is 0.15. The true positive rates are 0.98,
0.95, and 0.99 for fever, pain, and white cells count, respectively. The true
negative rates are 0.5, 0.4, and 0.95 for fever, pain, andwhite cells count, re-
spectively. The utilities of operating are shown in Table 7.23.

¬surgery

surgery

¬appendicitis
appendicitis

5
−10

−5
10

Table 7.23. The utility function U(Surgery, Appendicitis).

(a) Build a model for the diagnosis problem.
(b) Compute the maximum expected utility of the scenario where the physi-

cian does not wait for the blood test result.

(c) Compute the maximum expected utility of the scenario where the physi-

cian waits for the blood test result.

(d) Prior to deciding on whether or not to carry out surgery the physician has

the option to carry out a test for the white blood cell count.
Extend the model to include a representation of the test decision.

8

Data-Driven Modeling

In this chapter we introduce data-driven modeling as the task of inducing a
Bayesian network by fusion of (observed) data and domain expert knowledge.
The data-driven modeling is illustrated in Figure 8.1. The assumption is
that some underlying process has generated a database of observed cases as
well as domain expert experience and knowledge. The task of data-driven mod-
eling is to fuse these information sources in order to induce a representative
model of the underlying process. If the model is a good approximation of the
underlying process, then it can be used to answer questions about properties
of the underlying process.

Database of cases

Underlying process

Induced model

Experience & knowledge

Fig. 8.1. We assume the underlying process generates a database of cases as well
as experience and knowledge that can be fused for learning a model of the process.

In this book we consider the use of Bayesian networks to model the under-
lying process. The process of inducing a Bayesian network from a database
of cases and expert knowledge consists of two main steps. The ﬁrst step is to
induce the structure of the model, i.e., the DAG, while the second step is to es-
timate the parameters of the model as deﬁned by the structure. In this book
we consider only discrete Bayesian networks. Thus, the task of data-driven
modeling is to construct a Bayesian network N = (X, G, P) from the available
information sources. In general, the problem of inducing the structure of a

228

8 Data-Driven Modeling

Bayesian network is NP-complete (Chickering 1996). Thus, heuristic methods
are appropriate.

Section 8.1 gives some background on data-driven modeling and presents
a set of assumptions underlying the presented approach to data-driven model-
ing. Section 8.2 considers structure learning of Bayesian networks. A number
of diﬀerent algorithms for structure learning are considered. We consider the
PC, PC∗, and NPC algorithms. These algorithms are all constraint-based algo-
rithms. In Section 8.3 we consider the Expectation-Maximization algorithm
for parameter estimation. In addition to the two main steps of data-driven
modeling there is the step of sequential parameter learning. Structure learn-
ing and parameter estimation are performed during the model construction
phase whereas sequential parameter learning is performed during model us-
age. In Section 8.4 we consider sequential parameter learning, which is the
task of adjusting parameters of the model as the model is used, i.e., as new
cases occur.

Parts of this chapter have appeared in Madsen et al. (2005).

8.1 The Task and Basic Assumptions

Data-driven modeling is the task of identifying a Bayesian network model
from a source of data. We assume the underlying process follows a probability
distribution P0 (referred to as the underlying probability distribution of the
process). That is, we assume the data source can be adequately represented
by sampling from P0. The goal of data-driven modeling is to identify a model
representation of P0.

To simplify the task, the probability distribution P0 is assumed to be a
DAG-faithful probability distribution with underlying DAG G0. That is, we
assume that the distribution P0 can be represented as a Bayesian network
(if P0 is not DAG-faithful, a Bayesian network may still be an excellent ap-
proximation).

The faithfulness assumption (also known as the stability assumption) says
that the distribution P induced by N = (X, G, P) satisﬁes no independence
relations beyond those implied by the structure of G (Spirtes, Glymour &
Scheines 2000, Pearl 2000). A Bayesian network is faithful if and only if for
every d-connection there is a corresponding conditional dependence, i.e.,

X (cid:7)⊥G Y | ⇒ X (cid:7)⊥⊥p Y | Z.

We assume the underlying probability distribution P0 to be DAG-faithful with
DAG G0.

The database of cases generated by the underlying and unknown process
(i.e., the data source for learning) is denoted D = {c1, . . . , cN} where N is
the number of cases in the database. We assume D consists of independent
and identically distributed data cases drawn at random from the probability

8.2 Structure Learning From Data

229

distribution P0, i.e., we assume cases are drawn at random and independently
from the same probability distribution P0.

1, . . . , xi

Each case ci = {xi

n} in D speciﬁes an assignment of a value xi
j
to each variable Xj ∈ X. Some values in D may be missing, but missing
values are assumed to be missing at random (MAR) or missing completely at
random (MCAR), i.e., the missing data mechanism is uninformative and can
be ignored (Cowell et al. 1999). A variable never observed is called a hidden
or a latent variable.

Example 8.1. Table 8.1 shows a database of N cases D = {c1, . . . , cN} over n
variables X = {X1, . . . , Xn}.

X1

X2

. . .

Xn

blue
green
red
. . .

yes
. . .
no
. . .
N/A . . .
. . .
. . .

low
low
high
. . .

c1
c2
c3
. . .

Table 8.1. A database of cases.

In case c2, for instance, variable X2 is observed to have value no, i.e.,
x2
2 = no, while its value is missing in case c3 (missing values are indicated
using N/A).

We consider learning a Bayesian network as the task of identifying a DAG
structure G and a set of conditional probability distributions P with para-
meters Θ on the basis of D = {c1, . . . , cN} and possibly some domain expert
background knowledge.

8.2 Structure Learning From Data

Structure learning from data is the task of inducing the structure, i.e., the
graph, of a Bayesian network from a source of data. There exists diﬀerent
classes of algorithms for learning the structure of a Bayesian network such
as search-and-score algorithms and constraint-based algorithms as well as
combinations of the two. We consider structure learning algorithms based
on the constraint-based approach (Wermuth & Lauritzen 1983, Verma &
Pearl 1992, Spirtes et al. 2000).

In the constraint-based approach, the DAG G of a Bayesian network N =
(X, G, P) is considered as an encoding of a set of (conditional) dependence
and independence relations (CIDRs) MG, which can be read oﬀ G using the
d-separation criterion (Lauritzen et al. 1990b, Geiger, Verma & Pearl 1990).
Structure learning is then the task of identifying a DAG structure that (best)

230

8 Data-Driven Modeling

encodes a set of CIDRs. The set of CIDRs may, for instance, be derived from
the data source by statistical tests. Based on D alone, we can at most hope to
identify an equivalence class of graphs encoding the CIDRs of the generating
distribution P0.

A constraint-based structure learning algorithm proceeds by determining
the validity of independence relations of the form I(X, Y | SXY) (i.e., X is inde-
pendent of Y given subset SXY where X, Y ∈ X and SXY ⊆ X). The structure
learning algorithm will work with any information source able to provide such
information. We will consider the case where the validity of independence re-
lations is determined by statistical hypothesis tests of independence based on
a database of cases.

Applying Occam’s Razor (the law of parsimony), see Section 6.6, to the
problem of learning the structure of a Bayesian network from a database
of cases suggests that the simplest model of a set of competing models is
preferable. Why should we adhere to Occam’s Razor principle, i.e., adhere
to one speciﬁc selection bias? One argument is that we want models that
generalize correctly with respect to subsequent data and it is unlikely that we
by coincidence will ﬁnd a simple model which ﬁts the data as well as a very
complex model.

Learning the structure of a sparse graph is computationally less involved
than learning the structure of a dense graph where the number of edges is used
as a measure of the density of the graph. Inducing a graph from a sample of
cases that require the induced graph to be dense is computationally more
expensive than inducing a graph from a sample of cases that require the
induced graph to be sparse. In addition, domains that require the induced
graph to be dense may be diﬃcult to represent as a Bayesian network as
inducing the graph is computationally expensive, representing a dense graph
requires a lot of storage, and inference in dense graphs may be intractable.

The size of the space of possible DAGs grows super-exponentially with the
number of vertices in the graph. Robinson (1977) gives the following recursive
formula for calculating the number f(n) of DAGs on n vertices:

f(n) =

n(cid:10)

i=1

(−1)i+1

n!
(n − i)!i!

2i(n−1)f(n − i).

For example, f(10) ≈ 4.2 · 1018.

8.2.1 Basic Assumptions

Under the conditions listed below, the structure learning algorithm considered
will discover a DAG structure equivalent to the DAG structure of P0 (Spirtes
et al. 2000)

• The independence relationships have a perfect representation as a DAG.

This is the DAG faithfulness assumption.

• The database consists of a set of independent and identically distributed

8.2 Structure Learning From Data

231

cases.

• The database of cases is inﬁnitely large.
• No hidden (latent) variables are involved.
• The statistical tests have no error.

8.2.2 Equivalent Models

Two DAGs representing the same set of CIDRs are equivalent in the sense
that they can capture the same set of probability distributions. That is, two
models M1 and M2 are statistically equivalent if and only if they contain
the same set of variables and joint samples over them provide no statistical
grounds for preferring one over the other.

The equivalence class of a DAG G is the set of DAGs with the same set
of d-separation relations as G. APDAG — anacyclic, partially directed graph ,
i.e., an acyclic graph with some edges undirected (also known as a pattern or
essential graph) — can be used to represent the equivalence class of a set of
DAG structures, i.e., a maximal set of DAGs with the same set of d-separation
relations (Pearl 2000).

Any two models M1 and M2 over the same set of variables, whose
graphs G1 and G2, respectively, have the same skeleton GS (i.e., undirected
graph obtained by replacing directed edges with undirected edges) and the
same v-structures are equivalent. That is, two DAGs G1 and G2 are equivalent
if they have the same skeleton and the same set of uncovered colliders (i.e.,
X → Y ← Z-structures where X and Z are not connected by a link also known
as v-structures) (Pearl 2000).

Example 8.2. The models A → B → C and A ← B ← C and A ← B → C are
equivalent, as they share the skeleton A − B − C and have no v-structures.

Hence, based on data alone we cannot distinguish A → B → C and A ←
B ← C and A ← B → C. These models can, however, be distinguished from
A → B ← C.

An equivalence class is a maximal set of DAGs with the same set of inde-

pendence properties.

Example 8.3. The three DAGs in Figure 8.2 all represent the same set of
conditional independence and dependence relations.

Figure 8.3 shows the equivalence class of the three equivalent DAGs of

Figure 8.2.

If structure is identiﬁed from data, then two DAGs Gi and Gj from the
same equivalence class cannot be distinguished. Based on data alone, we can
at most hope to identify a PDAG representing the equivalence class of the
generating distribution P0.

232

8 Data-Driven Modeling

A

A

A

B

C

B

C

B

C

D

(a)

D

(b)

Fig. 8.2. Three equivalent DAGs.

D

(c)

B

A

D

C

Fig. 8.3. The equivalence class of the DAGs in Figure 8.2.

8.2.3 Statistical Hypothesis Tests

A set of CIDRs may be generated by statistical tests on the database of cases.
In each test, the hypothesis tested is that of independence between a pair of
variables.

Let X and Y be a pair of variables for which we would like to determine
dependence by statistical hypothesis testing. First we test for marginal inde-
pendence and subsequently we test for conditional independence given subsets
of other variables. In the case of marginal independence testing between X
and Y, the hypothesis to be tested is

H0 : P(X, Y) = P(X)P(Y),
(cid:7)= P(X)P(Y).
H1 : P(X, Y)

i.e., X ⊥⊥P Y

Hence, the null hypothesis H0 is X ⊥⊥P Y while the alternative hypothesis H1
is X (cid:7)⊥⊥P Y.

In order to test the hypothesis we may use the likelihood G2 test statistic.
Under the null hypothesis H0 the likelihood G2 test statistic has an asymp-
totic χ2 distribution with the appropriate degrees of freedom denoted df. The
likelihood G2 test statistic is computed as

G2 = 2

(cid:10)

x,y

Nxy log

(cid:7)

(cid:8)

,

Nxy
Exy

8.2 Structure Learning From Data

233

where Exy = NxNy
and Y = y.

N and Nxy speciﬁes the number of cases in D where X = x

In the case of conditional independence testing between X and Y given a

subset SXY, the hypothesis to be tested is

H0 : P(X, Y | SXY) = P(X | SXY)P(Y | SXY),
(cid:7)= P(X | SXY)P(Y | SXY).
H1 : P(X, Y | SXY)

i.e., X ⊥⊥P Y | SXY

The null hypothesis H0 is X ⊥⊥P Y | SXY while the alternative hypothesis H1
is X (cid:7)⊥⊥P Y | SXY. In the case of conditional independence testing, the likeli-
hood G2 test statistic is computed as

G2 = 2

(cid:10)

x,y,z

Nxyz log

(cid:7)

(cid:8)

,

Nxyz
Exyz

and z is a conﬁguration of SXY.

where Exyz = NxzNyz

Nz

If the test statistic G2 is suﬃciently small, i.e., G2 < c, then the null hy-
pothesis H0 is not rejected. Since the value of c is unknown the probability
distribution of G2 under H0 and a signiﬁcance level α are used. The signiﬁ-
cance level α is the probability of rejecting a true hypothesis and is typically
set to 0.05 (or 0.01 or 0.001). Not rejecting a hypothesis does not imply that
data support independence. A hypothesis is not rejected when there is no
evidence in the data against the hypothesis.

f(x,10)
f(x,5)

f(x)

Pχ2(df)(x ≥ G2)

G2

x

Fig. 8.4. The χ2 density function for diﬀerent degrees of freedom.

Under the null hypothesis H0 (i.e., (conditional) independence of X and Y)
the likelihood G2 test statistic has, as mentioned above, an asymptotic χ2
distribution with an appropriate number of degrees of freedom denoted df.
The value of df is deﬁned as

234

8 Data-Driven Modeling

df = (||X|| − 1)(||Y|| − 1)

(cid:5)

Z∈SXY

||Z||,

where ||X||, ||Y||, and ||Z|| are the number of distinct values of X, Y, and Z,
respectively, in D.

If the tail probability of the χ2 distribution at G2 is less than α, thenH 0
is rejected. Otherwise it is not rejected. Thus, the hypothesis H0 is rejected
in favor of the alternative hypothesis H1 when Pχ2(df)(x ≥ G2) < α, see
Figure 8.4 for an illustration.

In the ﬁgure f(x, 5) and f(x, 10) are χ2 density functions with ﬁve and ten
degrees of freedom, respectively. The solid line speciﬁes the density function
with ten degrees of freedom while G2 speciﬁes the value of the likelihood G2
test statistic. The tail of the distribution Pχ2(df)(x ≥ G2) is the area indicated
in the ﬁgure and is often referred to as the p-value. If the tail is less than the
signiﬁcance level, then the independence hypothesis is rejected. It is clear from
the ﬁgure that it is important to use the correct value of df when considering
the tail probability of the distribution.

Example 8.4. Consider the statistical test for (marginal) independence be-
tween a pair of variables X and Y with states n and y given the suﬃcient
statistics shown in Table 8.2.

X

n
y

Y

n

12
84

96

y

1
3

4

13
87

100

Table 8.2. Suﬃcient statistics for testing marginal independence of X and Y.

The hypothesis to be tested is H0 : X ⊥⊥P Y under the distribution induced

by the suﬃcient statistics. Computing the test statistic G2 proceeds as
(cid:8)

(cid:7)

(cid:10)

G2 = 2

Nxy log

Nxy
Exy
(cid:6)

x,y
(cid:4)

= 2

12 log

(cid:4)

(cid:4)

12
13∗96
100

(cid:6)(cid:6)

+ 1 log

(cid:4)

(cid:6)

(cid:4)

(cid:6)

1
13∗4
100

+ 84 log

84
87∗96
100

+

3 log

3
87∗4
100

≈ 0.2194.

8.2 Structure Learning From Data

235

Since G2 ∼ χ2(1) under H0 we obtain a p-value of 0.64 (i.e., PH0
(X ≥
G2) = 0.64). At a signiﬁcance level α = 0.01 we cannot reject the hypothe-
sis H0. Hence, X and Y are assumed to be independent.

The value of df is computed as the sum of (||X|| − 1)(||Y|| − 1) over all
conﬁgurations of SXY correcting for marginal zero counts (i.e., Nx = 0 or
Ny = 0). The value of ||X|| (||Y||) is decreased by one for each marginal count
equal to zero.

It is common to perform tests X ⊥⊥ Y | SXY for |SXY| = 0, 1, 2, 3 as the tests
become unreliable (for ﬁnite data sets) when the size of SXY exceeds three as
the number of counts Nxyz become too small.

If we reject H0 when it is true we incur a Type I error. On the other
hand, if we do not reject H0 when it is false we incur a Type II error. In
the constraint-based approach to structure learning the relative frequency of
Type I and Type II errors can (to some extent) be controlled by varying the
signiﬁcance level used in the statistical tests for conditional independence.
The lower the signiﬁcance level the lower the probability of incurring a Type
I error.

8.2.4 Structure Constraints

Prior to the testing phase, background knowledge of domain experts in the
form of constraints on the structure of the DAG can be speciﬁed. It is possible
to specify the presence and absence of edges, the orientation of edges, and a
combination.

If the background knowledge is assumed to be consistent with the under-
lying DAG G0 of the generating distribution P0, then it is not necessary to
test the validity of the background knowledge. Hence, specifying background
knowledge may reduce the number of statistical tests. Unfortunately, this may,
in practice, produce unwanted behavior of the edge-orientation algorithm (as
described later). This implies that background knowledge should often be used
with caution.

8.2.5 PC Algorithm

The PC algorithm (Spirtes & Glymour 1991, Spirtes et al. 2000) (which is
similar to the IC algorithm (Verma & Pearl 1992, Pearl 2000)) is a constraint-
based algorithm for learning the structure of a Bayesian network. The main
steps of the PC algorithm are

(1) Test for (conditional) independence between each pair of variables repre-

sented in D to derive MD, the set of CIDRs.
(2) Identify the skeleton of the graph induced by MD.
(3) Identify colliders.
(4) Identify derived directions.

236

8 Data-Driven Modeling

The PC algorithm produces a PDAG representing an equivalence class.
Each step of the PC algorithm is described in the following sections where
the task is to identify a graph G representing the independence model of the
underlying process generating the database of cases.

Step (1): Test for (Conditional) Independence

We try to determine the validity of the conditional
independence state-
ment X ⊥⊥ Y | SXY by a statistical hypothesis test as explained in Section 8.2.3.
The independence hypothesis is tested for conditioning sets SXY of cardi-
nality 0, 1, 2, 3 in that order. If the hypothesis X ⊥⊥ Y | SXY cannot be rejected
based on some preselected signiﬁcance level α, then the search for an inde-
pendence relation between X and Y is terminated.

Example 8.5. Assume D is a database of cases generated from the Burglary
or Earthquake network in Figure 5.5 on page 115. If the sample is suﬃciently
large, the conditional independence tests will generate the set MD = M (cid:6)⊥⊥ ∪
M⊥⊥ of CDIRs where

M⊥⊥ = {B ⊥⊥ E, B ⊥⊥ R, B ⊥⊥ W | A, A ⊥⊥ R | E, E ⊥⊥ W | A, R ⊥⊥ W | A} (8.1)
M (cid:6)⊥⊥ = {B (cid:7)⊥⊥ A, B (cid:7)⊥⊥ A | {E}, B (cid:7)⊥⊥ A | {R}, B (cid:7)⊥⊥ A | {W}, B (cid:7)⊥⊥ A | {E, R},

B (cid:7)⊥⊥ A | {E, W}, B (cid:7)⊥⊥ A | {R, W}, B (cid:7)⊥⊥ A | {E, R, W}, A (cid:7)⊥⊥ E, . . . ,
A (cid:7)⊥⊥ W, . . . , E (cid:7)⊥⊥ R, . . .}.

(8.2)

We will continue this example in the following subsections describing the

steps of the PC algorithm.

Step (2): Identify the Skeleton

The skeleton of an acyclic, directed or partially directed graph G is the undi-
rected graph G(cid:2) obtained from G by removing the direction on all directed
edges. The skeleton of the graph induced from MD is constructed from the
conditional dependence and independence statements of MD generated by the
statistical test in Step (1) of the PC algorithm.

For each pair of variables X and Y where no independence statements X ⊥⊥

Y | SXY exist, the undirected edge (X, Y) is created in the skeleton.

Example 8.6 (Example 8.5 continued). From MD the skeleton of G is gener-
ated. The skeleton of G generated from MD is shown in Figure 8.5.

Comparing the skeleton of Figure 8.5 with the skeleton of the graph of

Figure 5.5 on page 115 we see a perfect match.

In addition, it is obvious that the graph of Figure 8.5 is a more intuitive
and compact representation of the dependence and independence model than
that of Equation 8.1 and Equation 8.2.

8.2 Structure Learning From Data

237

B

E

R

A

W

Fig. 8.5. Skeleton representing the CDIRs MD of Equation 8.1 and Equation 8.2.

Step (3): Identify Colliders

Once the skeleton has been identiﬁed, colliders in the skeleton are identiﬁed.
Based on the skeleton, we search for subsets of variables {X, Y, Z} such that X
and Y are neighbors, Z and Y are neighbors while X and Z are not neighbors.
For each such subset a collider X → Y ← Z is created when Y (cid:7)∈ SXZ for
any SXZ satisfying X ⊥⊥ Z | SXZ in MD.

Example 8.7 (Example 8.6 continued). From the skeleton GS = (VS, ES) (see
Figure 8.5) and MD (see Equation 8.1 and Equation 8.2) a single collider B →
A ← E is identiﬁed, see Figure 8.6. This collider is identiﬁed as (B, A), (E, A) ∈
ES, (B, E) (cid:7)∈ ES, and A (cid:7)∈ SBE for any B ⊥⊥ E | SBE.

B

E

R

A

W

Fig. 8.6. Colliders identiﬁed from MD and the skeleton of Figure 8.5.

Notice that the collider B → A ← W is not identiﬁed as A ∈ SBW
for B ⊥⊥ W | SBW where SBW = {A}. A similar argument holds for the po-
tential collider E → A ← W.

Step (4): Identify Derived Directions

After identifying the skeleton and the colliders of G, derived directions are
identiﬁed. The direction of an edge is said to be derived when it is a logical

238

8 Data-Driven Modeling

consequence of (the lack of) previous actions (i.e., since the edge was not
directed in a previous step and it should have been in order to have a certain
direction, then the edge must be directed in the opposite direction).

X

Y

Z

⇒

X

Y

Z

Fig. 8.7. Rule R1 for identifying derived directions.

Starting with any PDAG including all valid colliders, a maximally directed
PDAG can be obtained following four necessary and suﬃcient rules (Verma &
Pearl 1992, Meek 1995). That is, by repeated application of these four rules all
edges common to the equivalence class of G are identiﬁed. The four rules R1
to R4 are illustrated in Figure 8.7 to Figure 8.10.

X

Y

Z

⇒

X

Y

Z

Fig. 8.8. Rule R2 for identifying derived directions.

Rules R1 to R4 direct edges under the assumption that G is a valid DAG,
i.e., they ensure that no directed cycle is created in the graph and no additional
colliders are created.

V

X

Y

Z

V

⇒

Z

X

Y

Fig. 8.9. Rule R3 for identifying derived directions.

Rule R1 as illustrated in Figure 8.7 follows from the fact that the col-
lider X → Y ← Z was not identiﬁed as a valid collider. Since the edge be-
tween Y and Z is not part of the aforementioned collider, it must be directed
from Y to Z.

Rule R2 as illustrated in Figure 8.8 follows from the fact that directing the
edge between X and Z from Z to X will induce a directed cycle in the graph.
Thus, the edge must be directed from X to Z.

Rule R3 as illustrated in Figure 8.9 follows from the fact that directing
the edge between X and Y from Y to X will inevitable produce an additional

8.2 Structure Learning From Data

239

X

Z

Y

V

⇒

X

Z

Y

V

Fig. 8.10. Rule R4 for identifying derived directions. (The dashed line between X
and V indicates that X and V are adjacent, i.e., connected by an edge.)

collider V → X ← Z or a directed cycle. Hence, the edge must be directed
from X to Y.

Rule R4 as illustrated in Figure 8.10 follows from the fact that directing
the edge between X and Y from Y to X will inevitable produce an additional
collider Y → X ← Z or a directed cycle. Hence, the edge must be directed
from X to Y. The dashed lines used to illustrate the fourth rule indicate that X
and V are connected by an edge (either directed or not).

The fourth rule is not necessary if the orientation of the initial PDAG
is limited to containing colliders only. The initial PDAG may contain non-
colliders when expert knowledge on edge directions are included in the graph.

Example 8.8 (Example 8.7 continued). As neither the collider B → A ← W
nor the collider E → A ← W were identiﬁed as a collider of G, the edge
between A and W must be directed from A to W. This is an application of
rule R1.

B

E

R

A

W

Fig. 8.11. Derived directions identiﬁed from the skeleton and the colliders identiﬁed
in Example 8.7.

Figure 8.11 shows the equivalence class of MD. The equivalence class con-
tains two DAGs diﬀering only with respect to the orientation of the edge
between E and R.

240

8 Data-Driven Modeling

The four rules R1 to R4 are necessary and suﬃcient for achieving maximal
orientation (up to equivalence) of the PDAG returned by the PC algorithm.
We use these four rules repeatedly until no edge can be given an orienta-
tion. Notice that the result of closing edge directions under rules R1 to R4 is
not necessarily a DAG. If the graph is not a DAG, then expert knowledge may
be appropriate in order to direct an edge. Once an edge has been directed by
use of expert knowledge derived directions should be identiﬁed. This process
may be repeated until a DAG structure is obtained. Experience shows that
most edges are directed using R1, and that R3 is only rarely used.

Since the goal of structure learning is to induce a DAG structure over the
variables in the data, a decision has to be made on how to handle directed
cycles and additional colliders induced by rules R1 to R4. In a practical im-
plementation of the algorithm as part of a tool, we suggest to give the user a
warning and to enforce the constraint that the induced graph must be acyclic
with the possible implication that edges may be reversed after the application
of a rule in order to enforce acyclicity.

Example 8.9 (Example 8.8 continued). There are two possible completions of
the PDAG shown in Figure 8.11 into a DAG. Either the edge between E and R
is directed from E to R or vice versa. The two DAGs induce the same set of
CDIRs.

B

E

R

A

W

Fig. 8.12. The result of structure learning.

Since, based on data alone, we cannot determine the direction of the edge
between E and R the direction can either be selected at random or we can
exploit expert knowledge, if available. From our knowledge of the problem
domain and the underlying process, we may argue that if there is an edge
between E and R, then it should be directed from E to R. An earthquake may
cause a report on the radio reporting the earthquake. A report on the radio
deﬁnitely cannot cause an earthquake. Figure 8.12 shows the result.

Once the edge between E and R has been given a direction the resulting
graph is a DAG. This completes the structure learning process. The next step
in the learning process is to determine or estimate the parameters of the model
in order to obtain a fully speciﬁed Bayesian network.

8.2 Structure Learning From Data

241

8.2.6 PC∗ Algorithm

To speed up the structure learning process various heuristic improvements of
the straightforward incremental testing scheme have been developed (Spirtes
et al. 2000).

One of the main improvements is to identify the conditioning set SXY using
an undirected graph specifying pairs of variables that have been identiﬁed as
(conditional) independent given previous test results. Thus, an undirected
graph describing the current set of neighbors of each variable is maintained.
This neighbor graph may be updated each time an independence state-
ment is identiﬁed (or after the completion of the sequence of tests performed
for a ﬁxed cardinality of the conditioning set), i.e., each independence test
not rejecting the hypothesis. Hence, the conditional independence of X and Y
is only tested conditional on subsets of the neighbors of X and Y in the undi-
rected graph. This can signiﬁcantly reduce the number of independence tests
performed. With the improvement described above the algorithm is referred
to as the PC∗ algorithm (Spirtes et al. 2000).

Similarly, the order in which we try out the possible conditioning sets of
a ﬁxed cardinality may be selected according to how likely they are to cause
independence for the edge under consideration. For instance, the heuristic rule
that the variables of the conditioning set should be strongly correlated with
both endpoints of the edge being tested may be used.

Due to the nature of the testing scheme, the conditioning set SXY for an
identiﬁed independence relation X ⊥⊥ Y | SXY is minimal in the sense that
no proper subset of SXY makes X and Y independent. This is an important
property that is exploited by the NPC algorithm.

8.2.7 NPC Algorithm

The NPC algorithm (Steck & Tresp 1999) is an extension of the PC algorithm.
The additional feature of the NPC algorithm over the PC algorithm is the
introduction of the notion of a necessary path condition (Steck & Tresp 1999)
for the absence of an edge.

Necessary Path Condition

Informally, the necessary path condition for the absence of an edge says that
in order for two variables X and Y to be independent (in a DAG faithful data
set) conditional on a minimal set SXY, there must exist a path between X
and every Z ∈ SXY (not crossing Y) and between Y and every Z ∈ SXY
(not crossing X), see Figure 8.13. Otherwise, the inclusion of each Z in SXY
is unexplained. Thus, in order for an independence relation to be valid, a
number of edges (or paths) are required to be present in the graph. This is
the necessary path condition.

242

8 Data-Driven Modeling

X

Z1

...

Zn

Y

Fig. 8.13. The necessary path condition says that in order for X ⊥⊥ Y | {Z1, . . . , Zn}
to be valid, there should for each Zi, i = 1, . . . , n exist a path between X and Zi not
crossing Y and vice versa.

The necessary path condition introduces the concept of an ambiguous edge.
An edge (X, Y) is ambiguous if the absence of (X, Y) depends on the presence
of an edge (X(cid:2), Y(cid:2)), and vice versa. In that case, (X, Y) and (X(cid:2), Y(cid:2)) are said to
be interdependent. An ambiguous edge indicates inconsistency in the set of
independence relations derived by the statistical tests. A maximal set of in-
terdependent ambiguous edges is denoted an ambiguous region. The necessary
path condition is probably better explained by the following example.

Example 8.10. Assume we are given the set of independence relations M⊥⊥ over
the variables {Tub or cancer, Tuberculosis, Cancer, X ray} from the Asia exam-
ple (Example 4.2 on page 68) where

(cid:19)

M⊥⊥ =

X ray ⊥⊥ Tub or cancer | {Cancer, Tuberculosis},

X ray ⊥⊥ Tuberculosis | Tub or cancer,

(cid:20)

X ray ⊥⊥ Cancer | Tub or cancer

.

(8.3)

The set M⊥⊥ speciﬁes the independence relations induced by the quantiﬁ-
cation of the model (i.e., by the conditional probability distributions on the
variables of the model given their parents). The CDIR

X ray ⊥⊥ Tub or cancer | {Cancer, Tuberculosis}

follows from the fact that Tub or cancer is a deterministic function of the
variables Tuberculosis and Cancer. That is, whenever the states of Tuberculosis
and Cancer are given, the state of Tub or cancer is known and hence indepen-
dent of the state of X ray. Assume further that the collider

Tuberculosis → Tub or cancer ← Cancer

is known to be present, see e.g. Figure 8.16.

8.2 Structure Learning From Data

243

The set M⊥⊥ consists of three independence statements, which are incon-
sistent (in the rest of this section we use E as short for Tub or cancer, L as
short for Cancer, andT as short for Tuberculosis). The absence of the edge
between E and X depends on the presence of the edges (E, L), (E, T ), (X, L),
and (X, T ) according to the necessary path condition. Contrary to this, the ab-
sence of the edge between X and T depends on the presence of the edges (E, X)
and (E, T ). Similarly, the absence of the edge between X and L depends on the
presence of the edges (E, X) and (E, L).

The interdependencies between edges induced by the set of conditional
independence statements M⊥⊥ may be displayed as a directed graph GM⊥⊥
=
(V, E) where each vertex v ∈ V corresponds to an edge (X, Y) in G and each
directed edge (u, v) ∈ E speciﬁes that the absence of v in G depends on the
presence of u in G. The graph GM⊥⊥ is referred to as the condition graph.

Example 8.11. Figure 8.14 shows the condition graph over M⊥⊥ in Equation 8.3.
Notice that vertices (L, X) and (E, X) as well as (T, X) and (E, X) are connected
by two directed edges.

(E, L)

(E, T )

(E, X)

(L, X)

(T, X)

Fig. 8.14. The condition graph over M⊥⊥.

The condition graph shows how the absence of each edge depends on the

presence of other edges.

When a vertex v in GM⊥⊥ does not have a parent, it implies that the absence
of the edge represented by v does not depend on the presence of any other
edges. Hence, the independence statement related to the absence of the edge
represented by v satisﬁes the necessary path condition.

The set of ambiguous regions can be identiﬁed as the strongly connected
components of GM⊥⊥ where a strongly connected component is a maximal sub-
graph in which every vertex is connected to every other vertex by a directed
path.

Example 8.12. Figure 8.15 shows the strongly connected component of the
condition graph of Figure 8.14. The strongly connected component consists of
vertices (L, X), (E, X), and (T, X). This set of vertices represents an ambiguous
region over the corresponding edges.

244

8 Data-Driven Modeling

(E, X)

(L, X)

(T, X)

Fig. 8.15. The strongly connected component of the condition graph in Figure 8.14.

Tuberculosis

Cancer

Tub or cancer

X ray

Fig. 8.16. Ambiguous edges in the skeleton due to the deterministic relation be-
tween Cancer, Tuberculosis, and Tub or cancer.

The graph of Figure 8.16 illustrates an alternative graphical representa-
tion of the ambiguous region consisting of three edges. The graph does not,
however, illustrate how the absence of an edge depends on the presence of
another set of edges.

T

L

T

L

E

E

E

E

Fig. 8.17. The two possible resolutions of the ambiguous region.

The two possible resolutions of the ambiguous region are shown in Fig-
ure 8.17. The ambiguous region may be resolved by including either edge (E, X)
or edges (L, X) and (T, X) in the graph. The minimal resolution is (E, X).

An ambiguous region is resolved by including a minimal number of ambigu-
ous edges in order to satisfy a maximal number of independence relations. In

8.2 Structure Learning From Data

245

a graphical representation ambiguous regions should, for instance, have diﬀer-
ent color as they consist of independent sets of ambiguous edges. A resolution
of an ambiguous region is a minimal set of edges which will remove all am-
biguous edges. A resolution is to include some of the ambiguous edges in the
graph in order to be able to make as many independence relations as possible
fulﬁll the necessary path condition.

Example 8.13. Figure 8.18 shows the skeleton of the graph identiﬁed by the
PC algorithm based on a (suﬃciently large) sample D generated from the
Asia network (Figure 4.2 on page 69).

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 8.18. Skeleton representing the CDIRs MD generated from D by the PC
algorithm.

Comparing the skeleton of Figure 8.18 with the skeleton of the acyclic,
directed graph of Figure 4.2 we notice that three edges seem to be missing
in Figure 8.18. These are the edges (Asia, Tuberculosis), (X ray, Tub or cancer),
and (Dyspnoea, Tub or cancer). The edge(Asia, Tuberculosis) is too weak not
to be rejected by the hypothesis test whereas the edges (X ray, Tub or cancer)
and (Dyspnoea, Tub or cancer) are absent due to the (deterministic) relation
between Tub or cancer, Tuberculosis, and Cancer as explained in Example 8.10.
Figure 8.19 shows the skeleton of the graph identiﬁed by the NPC algo-
rithm based on the same data set D. The edge(Asia, Tuberculosis) is missing
for the reasons explained above whereas the (deterministic) relation between
Tuber or cancer, Tuberculosis, and Cancer has induced two ambiguous regions.
The ambiguous regions can be resolved by selecting the minimal resolution

in each region.

In the above presentation we have assumed that at most a single con-
ditional independence statement is generated for each pair of variables. If
multiple conditional independence statements are generated it is necessary to
introduce a more complicated graphical notion where it is possible to rep-
resent the fact that an edge may depend on diﬀerent subsets of edges (one
subset of edges corresponding to each independence statement).

246

8 Data-Driven Modeling

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 8.19. Skeleton representing the CDIRs MD generated from D by the NPC
algorithm after selecting minimal resolutions.

In order to increase reliability and stability of the NPC algorithm multiple
independence statements may be generated for each pair of variables. This
can, for instance, be achieved by completing the iteration step for a ﬁxed
cardinality of the conditioning set even if an independence statement is found.
If one of the independence relations satisﬁes the necessary path condition,
then the independence hypothesis is not rejected. Otherwise, an ambiguous
edge is created.

The PC and NPC structure learning algorithms can be considered as ex-
tensions of the WL (Wermuth & Lauritzen 1983) and SGS (Spirtes et al. 2000)
algorithms.

8.3 Batch Parameter Learning From Data

Parameter estimation in a Bayesian network N = (X, G, P) is the task of
estimating the values of parameters Θ corresponding to DAG structure G and
distributions P from a database of cases D = {c1, . . . , cN}.

Let N = (X, G, P) be a Bayesian network with parameters Θ = {Θi}
where Θi = {Θij} and Θij = {θijk} such that θijk = P(Xi = k | pa(Xi) = j)
for each i, j, k. Batch parameter learning from data is to estimate the value
of θijk from D.

When each case ci ∈ D is complete maximum likelihood parameter es-
timation is simple (a case ci is complete when ci assigns a value to each
variable Xi ∈ X). The basic idea of parameter learning is illustrated in the
following example.

Example 8.14. Table 8.2 on page 234 shows the suﬃcient statistics for testing
marginal independence of X and Y in Example 8.4. From this example we may
determine a maximum likelihood estimate ^P(X = y | Y = y) of the conditional
probability of X = y given Y = y as follows

8.3 Batch Parameter Learning From Data

247

^P(X = y | Y = y) =

=

^P(X = y, Y = y)
^P(Y = y)
n(X=y,Y=y)
N
n(Y=y)
N

= n(X = y, Y = y)

n(Y = y)

.

From Table 8.2 we have n(X = y) = 87 and n(X = y, Y = y) = 3. Estimating
the conditional probability parameter ^θY=y | X=y = ^P(Y = y | X = y) proceeds
as

^P(Y = y | X = y) = n(Y = y, X = y)

n(X = y)

= 3
87

= 0.034.

The remaining parameters of P(Y | X) are estimated in a similar way.

8.3.1 Expectation-Maximization Algorithm

Parameter estimation in the case of missing values may be performed using the
Expectation-Maximization (EM) algorithm (Lauritzen 1995). The EM algo-
rithm is well-suited for calculating maximum likelihood (ML) and maximum
a posterior (MAP) estimates in the case of missing data. The EM algorithm
proceeds by iterating two steps: the expectation E-step and the maximization
M-step.

Let N = (X, G, P) be a Bayesian network for which we would like to esti-
mate the parameters Θ of P from a database of cases D. The estimation of the
parameters Θ from D proceeds, as mentioned above, by iterating the E-step
and the M-step. Given an initial assignment to the parameters Θ, the E-step
is to compute the expected suﬃcient statistics under Θ, while the subsequent
M-step is to maximize the log-likelihood of the parameters under the expected
suﬃcient statistics. These two steps are alternated iteratively until a stopping
criterion is satisﬁed.

In the case of missing data, the log-likelihood function of the parameters
is a linear function in the suﬃcient marginals (Lauritzen 1995). The log-
likelihood function l(Θ) of the parameters Θ given the data D = {c1, . . . , cN}
and DAG G is

l(Θ) =

N(cid:10)

l=1

log P(cl | Θ)

=

=

N(cid:10)

|V|(cid:10)

log P(Xi = xl

i | pa(Xi) = xl

pa(Xi), Θi, cl)

i=1

l(Θi),

l=1
|V|(cid:10)

i=1

248

8 Data-Driven Modeling

(cid:6)N

l=1 log P(Xi = xl

i | pa(Xi) = xl
where l(Θi) =
rameters Θi to be independent and (xl
i, xl
in the lth (possibly incomplete) case of D.

pa(Xi), Θi, cl) assuming the pa-
pa(Xi)) are the values of (Xi, pa(Xi))

For Bayesian networks, the E-step of the EM algorithm is to compute
expected counts (expected suﬃcient statistics for a complete database), where
expectation is taken with respect to the joint distribution over V under the
current parameter values Θ and observed data D

EΘ(Nijk) =

N(cid:10)

l=1

P(Xi = k, pa(Xi) =j | cl, Θi, G),

where Nijk is the count for (Xi, pa(Xi)) = (k, j) and cl is the lth case of D.
Next, the M-step computes new estimates θ∗
ijk of θijk interpreting the ex-
pected suﬃcient statistics as actual suﬃcient statistics from a complete data-
base of cases

θ∗
ijk =

(cid:6)||Xi||

EΘ(Nijk)
k=1 EΘ(Nijk)

.

The E-step and M-step are iterated until convergence of l(Θ) (or until a

limit on the number of iterations is reached).

We say convergence is achieved when the diﬀerence between the log-
likelihoods of two consecutive iterations is less than or equal to the numerical
value of a log-likelihood threshold δ times the log-likelihood, i.e.,

li(Θ) − li+1(Θ) ≤ δ|li+1(Θ)|

where li(Θ) is the log-likelihood of Θ after the ith iteration and li+1(Θ) is
the log-likelihood of Θ after the (i + 1)st iteration.

Alternatively, an upper limit on the number of iterations can be speciﬁed

in order to ensure that the procedure terminates.

Example 8.15 (Toss of a Coin). Consider the task of predicting the toss of a
coin. Having no additional knowledge of the coin we would assume it to be
fair. Hence, we assume heads and tails to be equally likely as the result of
tossing the coin. Let X be a discrete random variable with two states heads
and tails representing the outcome of a toss of the coin.

If we have observed the result of ten tosses of the coin we can use this
data to predict the result of a subsequent toss of the coin. Assume we make
the following sequence of observations on previous tosses of the coin

tails, tails, heads, tails, heads, tails, N/A, tails, tails, heads,

where N/A indicates a missing observation in the seventh throw, i.e., we know
the coin was tossed, but for some (random) reason we do not have access to the
result. From this sequence of observations we want to estimate the distribution
of X.

8.3 Batch Parameter Learning From Data

249

Since we have no extra knowledge about the coin we assume a uniform prior
distribution on X. Hence, the initial parameter assignment is set to P(X) =
(0.5, 0.5), i.e., Θ = {θtails = 0.5, θheads = 0.5}.

The estimated distribution after running the EM algorithm with the data
and parameter setting described above is P(X) = (0.74992, 0.25008) with an
experience count α = 10. This distribution is the result of ﬁve iterations of
the EM algorithm with δ = 0.0001 and

l1(Θ) = −5.54518
l2(Θ) = −4.548
l3(Θ) = −4.50078
l4(Θ) = −4.49877
l5(Θ) = −4.49868.

The parameter estimation is completed after ﬁve iterations of the EM algo-
rithm as described above.

Taking the observations on the coin into account, we predict tails to be

approximately three times as likely as heads.

In the EM algorithm the log-likelihood function l(Θ) of the model given
data is used as a quality measure to compare diﬀerent parameterizations of the
same network structure. When the increase in quality of the parameterization
between subsequent iteration steps is below a threshold, the EM algorithm
terminates. The log-likelihood function is well suited for this purpose. How-
ever, the log-likelihood quality measure does not take network complexity
into account. Thus, the log-likelihood measure is not well suited for model
selection due to overﬁtting from using a too-complex network structure. The
log-likelihood measure will take its maximum value for a complete graph.

Instead of using log-likelihood for model selection, Akaike’s Information
Criterion (AIC) or the Jeﬀreys–Schwarz criterion, also called the Bayesian In-
formation Criterion (BIC), may be used. The AIC score is computed as l(Θ)−κ
and the BIC score is computed as l(Θ) − 1
2 κ log N where κ is the number of
free parameters in the network and N is the number of cases in the database.
The number of free parameters κ is deﬁned as
(cid:5)

(cid:10)

κ =

(||X|| − 1)

||Y||.

X∈V

Y∈pa(X)

8.3.2 Penalized EM Algorithm

When both data and domain expert knowledge are available, both of these
two sources of knowledge should be taken into consideration by the parameter
estimation algorithm. This can be achieved using the penalized EM algorithm.
Domain expert knowledge on the parameters of a conditional probability
distribution is speciﬁed in the form of a Dirichlet probability distribution and

250

8 Data-Driven Modeling

an experience table. For each variable Xi, the distribution P(Xi | pa(Xi)) =
{P(Xi = k | pa(Xi) =j)}
and the experience counts αi1, . . . , αim where
m = (cid:15)pa(Xi)(cid:15) associated with Xi are used to specify the prior expert knowl-
edge. The size of the experience count αi indicates the weight of the domain
expert knowledge. The experience table over a variable Xi and its parent vari-
ables pa(Xi) indicates the experience related to the child distribution for each
possible conﬁguration of pa(Xi).

In the case of expert knowledge, the E-step does not change whereas the

M-step becomes

θ∗
ijk =

(cid:6)||Xi||

αijk + EΘ(Nijk)
k=1 (αijk + EΘ(Nijk))

,

where αijk = P(Xi = k | pa(Xi) = j)αij is the initial count for (Xi, pa(Xi)) =
(k, j). Thus, the M-step is changed to take the expert knowledge into account.

Example 8.16. Consider again the problem of predicting the result of a coin
toss. Assume we have reason to believe that the coin is not fair. Instead of
assuming a uniform prior distribution on the parameters, we will assume a
non-uniform prior on X, e.g. we assume the parameter assignment is P(X) =
(0.75, 0.25) with an experience count of α = 5. This will serve as the initial
parameter assignment.

The estimated distribution is P(X) = (0.75, 0.25) with an experience
count α = 15. This distribution is the result of only two iterations of the
EM algorithm with δ = 0.0001 and

l1(Θ) = −4.49868
l2(Θ) = −4.49868.

The parameter estimation is completed after only two iterations of the EM
algorithm as described above.

Taking the observations on the coin and the additional knowledge of the

coin into account, we predict tails to be three times as likely as heads.

The penalized EM algorithm is useful for combining expert domain knowl-
edge and data in parameter estimation. It is, however, important to be care-
ful when using the penalized EM algorithm as illustrated by the following
example.

Example 8.17. Assume we need to estimate the conditional probability distri-
butions of a network with two dependent variables X and Y. To model the
dependency between variables X and Y we have either the network in Fig-
ure 8.20(a) or the network in Figure 8.20(b).

From the point of view of modeling the joint probability distribution over
variables X and Y, the choice of network does not matter as the two models
are equivalent. Assume the complete database of cases to be used in the para-
meter estimation has suﬃcient statistics as shown in Table 8.3. The database

8.3 Batch Parameter Learning From Data

251

X

Y

X

Y

(a)

(b)

Fig. 8.20. Two equivalent DAGs over X and Y.

Y

y0
y1
y2

X

x0

x1

0
4
6

10

2
2
3

7

2
6
9

17

Table 8.3. Suﬃcient statistics for estimating the distributions of X and Y.

consists of 17 complete cases, i.e., no missing values. Notice that the conﬁgu-
ration (x0, y0) does not appear in the database.

The probability of the conﬁguration (x0, y0) will be zero in both networks
if the EM algorithm is used for the estimation. The penalized EM algorithm
may be used to avoid zero probabilities in the joint probability distribution.
The trick is to assign a positive probability distribution to the initial parame-
ter values and a non-zero value to the experience counts. The values of the
experience counts should be chosen with care though.

Assume we decide to assign a uniform probability distribution to the
parameters, e.g., P(X) = (1/2, 1/2), P(Y | X = x0) = (1/3, 1/3, 1/3), and
P(Y | X = x1) = (1/3, 1/3, 1/3) for the network in Figure 8.20(a). To avoid
a zero probability for the conﬁguration (x0, y0) we assign experience counts
as αX = 1, αY0 = 1 and αY1 = 1. The resulting joint probability distribution
over X and Y is shown in the second column of Table 8.4.

X

x0
x0
x0
x1
x1
x1

Y

y0
y1
y2
y0
y1
y2

0.0177
0.2298
0.3359
0.1215
0.1215
0.1736

0.0216
0.2262
0.3370
0.1080
0.1257
0.1815

0.0093
0.2315
0.3426
0.1204
0.1204
0.1759

Table 8.4. Joint probability distributions over X and Y.

252

8 Data-Driven Modeling

If we use the same approach on the network in Figure 8.20(b), then the
resulting joint probability distribution over X and Y is shown in the third
column of Table 8.4.

It is clear from Table 8.4 that the approach taken does not produce the
same results for two equivalent models given complete data and a uniform
prior. The problem is the value assigned to the experience counts.

Instead of assigning the value 1 to all experience counts, we assign the
value 1/||pa(X)|| to each parent conﬁguration of X and value 1/||pa(Y)|| to
each parent conﬁguration of Y. This approach will ensure that the two equiv-
alent networks in Figure 8.20 represent the same joint probability distribution
over X and Y after EM learning. With this approach, the result is the same
for both models and it is shown in the last column of Table 8.4.

8.4 Sequential Parameter Learning

Sequential parameter learning or parameter adaptation is the task of sequen-
tially updating the parameters of the conditional probability distributions of a
Bayesian network when the structure and an initial speciﬁcation of the condi-
tional probability distributions are given in advance. We consider a Bayesian
approach to sequential parameter (Spiegelhalter & Lauritzen 1990, Cowell
et al. 1999).

In sequential learning, experience is extended to include both quantitative
expert knowledge and past cases (e.g. from EM learning). Thus, the result of
EM learning may be considered as input for sequential learning.

Let Xi be a variable with n states, then the prior belief in the parameter
vector Θij = (θij1, . . . , θijn), i.e., the conditional probability distribution of
a variable Xi given its parents pa(Xi) = j, is speciﬁed as an n-dimensional
Dirichlet distribution D(αij1, . . . , αijn). This distribution is represented using
a single experience count αij = 1/||pa(Xi)|| (equivalent sample size) and the
initial distribution P(Xi | pa(Xi) = j). The experience count αijk for a partic-
ular state k of Xi given pa(Xi) = j is αijk = αijP(Xi = k | pa(Xi) =j). This
setting is similar to the setting of the EM algorithm.

Parameter adaptation proceeds by updating the experience associated with
the parameters and subsequently updating the parameters to reﬂect the new
experience. The process of updating the experience associated with a distrib-
ution is referred to as retrieval of experience. Dissemination of experience is
the process of calculating prior conditional probability distributions for the
variables in the Bayesian network given the experience, and it proceeds by set-
ting each parameter equal to the mean of the corresponding updated Dirichlet
distribution, i.e., θ∗
ijk, as shown below. See Figure 8.21 for a graphical repre-
sentation of dissemination and retrieval of experience.

After a complete observation (Xi, pa(Xi)) = (k, j), the posterior belief in
ijl = αijl for l (cid:7)= k. After

the distribution is updated as α∗

ijk = αijk + 1 and α∗

8.4 Sequential Parameter Learning

253

Experience Θ

l
a
v
e
i
r
t
e
R

D
i
s
s
e
m
n
a
t
i
o
n

i

Evidence ci

Model M

Fig. 8.21. Retrieval and dissemination of experience.

an incomplete observation, the resulting weighted sum of Dirichlet distribu-
tions over the parameters is approximated with a single Dirichlet distribution
with the same means and sum of variances as the mixture. The approximation
is used in order to avoid the combinatorial explosion, which would otherwise
occur when subsequent incomplete observations are made. For each i, j, k, the
updated value θ∗

ijk of each parameter θijk is

ijk = αijk + P(Xi = k, pa(Xi) = j | ε) + θijk(1 − P(pa(Xi) =j | ε))
θ∗

αij + 1

.

The updated equivalent sample size α∗
ij is a function of the means and the
sum of variances, see e.g. Cowell et al. (1999) for details on computing the
updated α∗
ij. Notice that P(Xi = k, pa(Xi) = j | ε) and P(pa(Xi) = j | ε) are
readily available after a propagation of evidence.

In order to reduce the inﬂuence of past and possibly outdated information,
an optional feature of fading is provided. Fading proceeds by reducing the ex-
perience count before the retrieval of experience takes place. The experience
count αij is faded by a factor of 0 < λij ≤ 1 typically close to one according
to pij = P(pa(Xi) =j)
ij = αij((1 − pij) + λijpij). Notice that
experience counts corresponding to parent conﬁgurations, which are inconsis-
tent with the evidence, are unchanged. The fading factors of a variable Xi are
speciﬁed in a separate table including one fading factor for each conﬁguration
of pa(Xi).

such that α∗

Example 8.18. Consider again the Asia example (Example 4.2 on page 68).
Assume we have evidence ε = {S = no, A = yes, D = yes} on a patient, i.e.,
a non-smoking patient with dyspnoea who has recently been to Asia. The
evidence is entered and propagated followed by an adaptation of parameters.
Table 8.5 shows the experience counts for L, B, andS before (i.e., after EM
learning using 10, 000 randomly generated cases) and after the adaptation
with fading factor of λ = 0.999 for each distribution.

Note that since S is an observed variable without parents, the experience
λ = 1001 if S = no is observed multiple

count αS for P(S) will converge to 1
times.

254

8 Data-Driven Modeling

αS

αL | S=no

αL | S=yes

αB | S=no

αB | S=yes

Before
After

10, 000
9, 001

4970.88
4472.71

5029.12
5029.12

4970.88
4473.73

5029.12
5029.12

Table 8.5. Experience counts for B, L, and S before and after adaptation.

Sequential updating may be applied to the parameters of conditional prob-
ability distributions in mixed Bayesian networks and in inﬂuence diagrams
when all decisions have been instantiated.

8.5 Summary

In this chapter we have considered data-driven modeling as the process of
inducing a Bayesian network from data and domain expert knowledge. We
have considered this as a two-step learning process where the ﬁrst step is to
induce the structure of the graph of the Bayesian network whereas the second
step is to estimate the parameters of the conditional probability distributions
induced by the graphical structure of the Bayesian network.

We have considered the constraint-based approach to learning the struc-
ture of a Bayesian network from data. In particular we have described in some
detail the steps of the PC algorithm. The PC algorithm is based on perform-
ing a sequence of statistical hypothesis tests for (conditional) independence.
Based on the set of CDIRs derived by the test, the skeleton, the colliders, and
derived directions of the graph are identiﬁed.

Since the result of the PC algorithm (i.e., the PDAG) is rather sensitive to
errors in the CDIRs the notion of a necessary path condition for the absence
of an edge in the skeleton of the induced graph is introduced. The necessary
path condition produces the NPC algorithm, which has also been described
in some detail.

The graph resulting from structure learning deﬁnes the set of conditional
probability distributions of the Bayesian network. The parameters of this set
of distributions may be set manually, but more often the parameters of the
distributions will be estimated from the same database of cases as used by
the structure learning algorithm. We have described the EM algorithm and
the penalized EM algorithm for estimating the parameters of a conditional
probability distribution from data.

Finally, we have described a Bayesian approach for adaptation of parame-

ters as the model is used.

In the next part of the book we consider diﬀerent methods for analyzing
probabilistic networks. This includes methods for conﬂict analysis, sensitivity
analysis, and value of information analysis.

Exercises

Exercises

255

Exercise 8.1. Let the following set of conditional pairwise independence
statements be the result of performing statistical independence tests M⊥⊥ on
a set of variables:

(cid:19)

(cid:20)

M⊥⊥ =

A ⊥⊥ C | {}, C ⊥⊥ S | {}, F ⊥⊥ S | {A}, T ⊥⊥ S | {A}, T ⊥⊥ F | {C}

.

For each independence statement X ⊥⊥ Y | SXY, the conditioning set SXY is
minimal.

(a) Identify the skeleton of the graph of the network.
(b) Identify colliders.
(c) Identify derived directions.
(d) Identify remaining undirected edges according to your interpretation of

the problem domain.

Exercise 8.2. Generate 10, 000 sample cases from the Asia network shown in
Figure 8.22 (see Example 4.2 on page 68 for more details).

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 8.22. A graph specifying the independence and dependence relations of the
Asia example.

The Asia network consists of the three hypothesis variables Bronchitis,
Cancer, and Tuberculosis. The risk factors are Smoking and a recent visit to Asia
while the symptoms of the network are X ray and Dyspnoea. The risk factors
and symptoms are the possible observations a physician can make on a patient.

(a) Use a software package for learning the equivalence class of DAGs repre-
senting the data generated. Specify expert knowledge on the structure of
the DAG as constraints.
(b) Resolve ambiguous regions.
(c) Complete orientation of the DAG.

256

8 Data-Driven Modeling

(d) Specify expert knowledge on the distributions of the model and estimate

the parameters from the data generated.

Exercise 8.3. Consider the network in Figure 8.23. Assume the network is
the result of learning from a complete database with 1000 cases and let l(Θ) =
−964.

Cold

Angina

Fever

SoreThroat

SeeSpots

Fig. 8.23. The Angina network.

(a) Compute the AIC score.
(b) Compute the BIC score.
(c) Compare the AIC and BIC scores. Explain the diﬀerence.

Exercise 8.4. Assume we plan to pick up mushrooms to prepare for a nice
dinner. In the process we want to classify each mushroom as either edible
or poisonous. We want to construct a network for classifying each mushroom
based on a database of mushrooms. Assume Table 8.6 to Table 8.9 specify the
suﬃcient statistics of a database we found on the Internet.

Class

edible
poisonous

n

5333
4667

Table 8.6. Suﬃcient statistics for the class variable.

(a) Construct a model for classifying mushrooms based on the data in Ta-

ble 8.6 to Table 8.9.

(b) What is the probability of a mushroom with no odor being edible?

Exercises

257

Population

edible

poisonous

Class

abundant
clustered
numerous
scattered
several
solitary

587
389
480
1173
1440
1264

0
75
0
420
3384
788

Table 8.7. Suﬃcient statistics for the class variable and Population.

Cap Shape

edible

poisonous

Class

bell
conical
convex
ﬂat
knobbed
sunken

478
0
2453
2098
267
37

56
5
2034
1853
719
0

Table 8.8. Suﬃcient statistics for the class variable and Cap Shape.

Class

Odor

edible

poisonous

almond
anise
creosote
ﬁshy
foul
musty
none
pungent
spicy

475
475
0
0
0
0
4383
0
0

0
0
229
685
2567
57
141
303
685

Table 8.9. Suﬃcient statistics for the class variable and Odor.

Part III

Model Analysis

9

Conﬂict Analysis

It is diﬃcult or even impossible to construct models covering all aspects of
(complex) problem domains of interest. A model is therefore most often an
approximation of a problem domain that is designed to be applied according
to the assumptions as determined by the background condition or context of
the model. If a model is used under circumstances not consistent with the
background condition, the results will in general be unreliable. The evidence
need not be inconsistent with the model in order for the results to be un-
reliable. It may be that evidence is simply in conﬂict with the model. This
implies that the model in relation to the evidence may be weak and therefore
the results may be unreliable.

Evidence driven conﬂict analysis is used to detect possible conﬂicts in
the evidence or between the evidence and the model. If a possible conﬂict is
detected we should alert the user that the model given the evidence may be
weak or even misleading. In this way conﬂict analysis can also be used for
model revision.

Hypothesis driven conﬂict analysis is used to identify ﬁndings acting in
favor of or against a hypothesis. If the evidence set consists of a large number
of ﬁndings, it may be crucial to identify which individual ﬁndings act in favor
of or against a hypothesis.

In this chapter we use the Asia example to illustrate the concepts of evi-

dence and hypothesis driven conﬂict analysis in Bayesian networks.

Example 9.1 (Asia). As an example we apply conﬂict analysis to the Asia
example shown in Figure 9.1 (see Example 4.2 on page 68 for more details).
Assume we see a smoking patient with no shortness of breath and a
negative X-ray result, i.e., the initial set of evidence is ε = {Dyspnoea =
no, Smoker = yes, X ray = no}. In the remainder of this section we write
ε = {εD, εS, εX} for short.

From our knowledge about the problem domain and the assumptions of
the model, we would say that the ﬁndings are in conﬂict. The patient visited
the chest clinic, but she does not have any of the symptoms even though

262

9 Conﬂict Analysis

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 9.1. A graph specifying the independence and dependence relations of the Asia
example.

she is a smoker. A propagation of the evidence produces posterior probability
distributions over the diseases P(B = yes | ε) = 0.25, P(L = yes | ε) =0.089 ,
and P(T = yes | ε) = 0.009. This does not disclose a possible conﬂict, but only
indicates that the most likely disease the patient is suﬀering from is bronchitis.
Using the model only, we cannot distinguish between ﬂawed evidence, a case
not covered by the model, or a rare case.

In Section 9.1 we describe evidence driven conﬂict analysis. A conﬂict
measure designed to be eﬃcient to compute and to give indications of possi-
ble conﬂicts in evidence is introduced. Possible conﬂicts should be detected
and traced or explained as rare cases that the model may not cover well. In
Section 9.2 we describe hypothesis driven conﬂict analysis. A cost-of-omission
measure is introduced. This measure is useful for relating the impact of ﬁnd-
ings on a hypothesis variable. In addition, we describe how to investigate the
impact of a ﬁnding on the probability of a hypothesis.

9.1 Evidence Driven Conﬂict Analysis

The objective in evidence driven conﬂict analysis is to detect possible conﬂicts
in a set of evidence. As a tool for detecting possible conﬂicts, we want a conﬂict
measure which is easy to calculate and which gives a reliable indication of a
possible conﬂict.

9.1.1 Conﬂict Measure

In order to detect a possible conﬂict we need to compare the results obtained
from our best model with the results obtained from an alternative model.
This model is referred to as astraw model . A straw model is a simple and
computationally eﬃcient model used as an alternative model in the detection
of possible conﬂicts.

9.1 Evidence Driven Conﬂict Analysis

263

In the design of the conﬂict measure we make the assumption that for
the normally (according to the model) behaving evidence it is the case
that P(εi | εj) > P(εi) where εi and εj. Based on this assumption and
since P(εi, εj) =P (εi | εj)P(εj), the conﬂict measure is designed to indicate
a possible conﬂict when the joint probability of the evidence is less than the
product of the probabilities of the individual pieces of evidence given the
model. We thus assume that there is a possible conﬂict between two pieces of
evidence εi and εj, if

P(εi)P(εj)
P(εi, εj)

> 1 ⇔ log

P(εi)P(εj)
P(εi, εj)

> 0,

i.e., εi and εj are negatively correlated. Thus, we deﬁne the conﬂict measure
as

conf(ε) = log

P(εi)P(εj)
p(ε)

,

where ε = {εi, εj}. Notice that we are comparing the joint probability of the
evidence with a model where the observed variables are independent (the
straw model).

The main assumption is that pieces of evidence are positively correlated
i=1 P(εi). With this assumption the general conﬂict mea-

(cid:8)n

such that P(ε) >
sure is deﬁned as

conf(ε) = conf({ε1, . . . , εn}) = log

(cid:8)n

i=1 P(εi)
p(ε)

.

This implies that a positive value of the conﬂict measure conf(ε) indicates
a possible conﬂict. Notice that the conﬂict measure is easy to calculate once
the evidence ε has been propagated in a junction tree representation of the
model. The marginal probabilities P(εi) are available once the junction tree
has been initialized and the probability of the evidence P(ε) is available as a
by-product of message passing, see Section 5.1 for details on propagation of
evidence.

Another way to look at the deﬁnition of the conﬂict measure is the follow-

ing. In the general case, two pieces of evidence εi and εj are either

• positively correlated, i.e., P(εi | εj) > P(εi),
• negatively correlated, i.e., P(εi | εj) < P(εi), or
•

independent, i.e., P(εi | εj) =P (εi).

Given these three options, we choose to assume that two pieces of evidence εi
and εj are positively correlated.

Example 9.2. Returning to Example 9.1, the evidence is ε = {εD, εS, εX}. We
compute the conﬂict measure to be

264

9 Conﬂict Analysis

conf(ε) = conf({D = no, S = yes, X = no})

P(D = no)P(S = yes)P(X = no)
P(ε)

0.56 ∗ 0.5 ∗ 0.89
0.2

= 0.22

= log

= log

> 0.

Thus, conf(ε) indicates a possible conﬂict in ε.

9.1.2 Tracing Conﬂicts

Once a possible conﬂict has been detected, the origin of the conﬂict should
be determined such that it can be presented to the analyst or user. Tracing
the source of a conﬂict amounts to computing the conﬂict measure conf(ε(cid:2))
for (all) subsets ε(cid:2) ⊆ ε.

Tracing the conﬂict to all subsets of the evidence is a computationally com-
plex problem as the number of subsets increases exponentially with the size of
the evidence set. It is not always possible or meaningful to assume monotonic-
ity with respect to conﬂict in subsets, i.e., no subset ε(cid:2)(cid:2) ⊆ ε(cid:2) with conf(ε(cid:2)(cid:2)) > 0
exists for ε(cid:2) with conf(ε(cid:2)) ≤ 0. That is, the monotonicity assumption states
that if ε(cid:2) is not in conﬂict, then no subset of ε(cid:2) is in conﬂict.

Example 9.3. In Example 9.2 a possible conﬂict was identiﬁed, but not traced,
i.e., located. That is, after the conﬂict measure has been found to indicate a
possible conﬂict, the source of the conﬂict should be traced. This is achieved
by computing the conﬂict measure for diﬀerent subsets ε(cid:2) of ε.

With three pieces of evidence there are three pairs of evidence to consider.

The pair εDS = {εD, εS} has conﬂict measure

conf(εD, εS) = log

= log

P(D = no)P(S = yes)
P(D = no, S = yes)
0.56 ∗ 0.5
0.22

= 0.24,

the pair εDX = {εD, εX} has conﬂict measure

conf(εD, εX) = log

= log

P(D = no)P(X = no)
P(D = no, X = no)
0.56 ∗ 0.89
0.52

= −0.04,

and the pair εDS = {εS, εX} has conﬂict measure

conf(εS, εX) = log

= log

P(S = yes)P(X = no)
P(S = yes, X = no)
0.5 ∗ 0.89
0.47

= −0.06.

9.1 Evidence Driven Conﬂict Analysis

265

The (partial) conﬂicts show that there is a conﬂict in the pair εDS = {εD, εS}
while there are no conﬂicts in the pairs εDX = {εD, εX} and εSX = {εS, εX}.
Hence, the source of the global conﬂict in conf(ε) can be traced to the partial
conﬂict between εD and εS. The ﬁnding that the patient is a smoker is in
conﬂict with the ﬁnding that the patient is not suﬀering from dyspnoea (under
the assumptions of the model).

Let εi and εj be a partitioning of the evidence ε into two disjoint subsets
such that ε = εi ∪ εj is the evidence under consideration. The global conﬂict
conf(ε) can be computed from local conf({εi, εj}) and partial conﬂicts conf(εi)
and conf(εj)

conf(ε) = conf({εi, εj}) + conf(εi) + conf(εj).

This property holds in general and it may be used as a tool for tracing conﬂicts.

Example 9.4. In the example, we have three subsets with partial conﬂicts com-
puted in Example 9.3 conf(εD, εS) = 0.24, εDX = {εD, εX} = −0.04, and
εDS = {εS, εX} = −0.06. The local conﬂict between {εD, εS} and εX is

conf({εD, εS}, εX) = log

P(D = no, S = yes)P(X = no)
P(ε)

= log

0.22 ∗ 0.89
0.2

= −0.02.

The global conﬂict can be computed from local and partial conﬂicts as

conf({εD, εS, εX}) = conf({εD, εS}) + conf({{εD, εS}, εX})

= 0.24 + (−0.02) = 0.22

We notice that the ﬁnding εX reduces the global conﬂict slightly.

9.1.3 Conﬂict Resolution

Typical evidence from a rare case may indicate a possible conﬂict (a rare case
is identiﬁed as a ﬁnding or set of evidence with low (prior) probability). Let
ε = {ε1, . . . , εn} be ﬁndings for which the conﬂict measure indicates a possible
conﬂict, i.e., conf(ε) > 0. Also, let h be a hypothesis which could explain the
ﬁndings (i.e., conf(ε ∪ {h}) ≤ 0). That is, if we also know the hypothesis h to
be true, then we will not expect a conﬂict. We compute

conf(ε ∪ {h}) = conf(ε) + log

P(h)
P(h | ε)

.

If conf(ε) ≤ log
the normalized likelihood.

P(h | ε)
P(h) , thenh can explain away the conﬂict where

P(h | ε)
P(h)

is

266

9 Conﬂict Analysis

Hypothesis

Asia = no
Asia = yes
Bronchitis = no
Bronchitis = yes
Cancer = no
Cancer = yes
Tuberculosis = no
Tuberculosis = yes
Tub or cancer = no
Tub or cancer = yes

P(h)

P(h | ε)

log P(h | ε)
P(h)

0.99
0.01
0.55
0.45
0.545
0.455
0.99
0.01
0.995
0.005

0
0
0.31
−0.59
1.7
0.68
0.01
−2.3

0.99
0.01
0.75
0.25
0.1
0.9
0.999
0.001
0.9999
0.0001 −3.9

0.005

Table 9.1. The log-normalized likelihood of each possible instantiation of each
variable in Example 9.1.

Example 9.5. Table 9.1 shows the log-normalized likelihood of each possible
instantiation of each variable in Example 9.1. From this table it is clear that
there are ﬁve possible explanations of the conﬂict (some of which have a low
log-normalized likelihood).

For instance, the posterior probability of the patient not having bronchitis
is P(B = no | ε) = 0.75 while the prior probability is P(B = no) =0.55 . We
compute the logarithm of the normalized likelihood

log

P(h | ε)
P(h)

= log

0.75
0.55

= 0.31.

From this we compute the conﬂict measure under the hypothesis of the patient
not having bronchitis

conf(ε ∪ {h}) = conf(ε) + log

P(h)
P(h | ε)

= 0.22 − 0.31 < 0.

Thus, the conﬂict may be explained away as the rare case where the patient
is not suﬀering from bronchitis given the symptoms and risk factors (similarly
for Cancer). In general, if the normalized likelihood is greater than the conﬂict,
then we may have a rare case.

The above method for detecting conﬂicts may fail. This will happen if
the assumption of positively correlated pieces of evidence does not hold. The
above approach can be combined with other methods such as those reported
in Kim & Valtorta (1995) and Laskey (1991). These methods are based on
using a more complex straw model for the comparison (i.e., evidence variables
are not assumed independent) and a diﬀerent measure to detect conﬂicts. The
advantage of the above approach is that is computationally eﬃcient.

The above method for detecting conﬂicts was introduced by Andersen et al.

(1989) and the method is described in Jensen (1996) and Jensen (2001).

9.2 Hypothesis Driven Conﬂict Analysis

267

9.2 Hypothesis Driven Conﬂict Analysis

In hypothesis driven conﬂict analysis the impact of a ﬁnding on the probability
of a hypothesis is investigated. In order to be able to relate the impacts of
diﬀerent ﬁndings on the probability of the hypothesis given evidence a measure
is needed. This will allow us to identify pieces of evidence that conﬂict with
the impact of the entire set of evidence.

9.2.1 Cost-of-Omission Measure

The main purpose of hypothesis driven conﬂict analysis is to identify pieces
of evidence with an impact on the evidence that conﬂicts with the impact of
the entire set of evidence. In order to perform this investigation a measure
providing a numerical value specifying the cost of omitting a single piece of
evidence is required. The cost-of-omission c(P(X | ε), P(X | ε \ {εi})) of εi is
deﬁned as

c(P(X | ε), P(X | ε \ {εi})) =

(cid:10)

x∈dom(X)

P(x | ε) log

P(x | ε)
P(x | ε \ {εi})

.

(9.1)

The above equation is undeﬁned for values P(x | ε) = 0 and P(x | ε\{εi}) = 0. For
these two cases, we deﬁne cost-of-omission to be 0 and inﬁnity, respectively.

9.2.2 Evidence with Conﬂict Impact

Let H be a hypothesis variable with states dom(H) ={h 1, . . . , hn} and let ε =
{ε1, . . . , εm} be the set of evidence. The impact of a ﬁnding εi ∈ ε on a
hypothesis h ∈ dom(H) is determined by computing and comparing the prior
probability of the hypothesis P(h), the posterior probability of the hypothesis
given all evidence P(h | ε), and the posterior probability of the hypothesis given
all evidence except the ﬁnding under consideration P(h | ε \ εi). By comparing
these three probabilities we can identify ﬁndings that have a conﬂicting impact
on the probability of the hypothesis compared with the impact of the entire
set of evidence.

Example 9.6 (Asia). In the Asia example we assume evidence ε = {Dyspnoea =
no, Smoker = yes, X ray = no} = {εD, εS, εX}. Assume further that B =
Bronchitis is the hypothesis variable under consideration.

Figure 9.2 shows the impact of the ﬁnding εS on the hypothesis B = no
while Figure 9.3 shows the impact of the ﬁnding εS on the hypothesis B = yes.
From Figure 9.2 it is clear that the ﬁnding εS acts against the hypothesis B =
no. The probability of the hypothesis is higher when the ﬁnding εS is excluded
than when it is included. The posterior is higher than the prior. This implies
that the combined eﬀect of the evidence acts in favor of the hypothesis.

Similarly, from Figure 9.3 it is clear that the ﬁnding εS acts in favor of
the hypothesis B = yes. The probability of the hypothesis is higher when the

268

9 Conﬂict Analysis

Impact of Evidence

1

0.8

0.6

0.4

0.2

0

P(h)

P(h | ε \ εS)

P(h | ε)

Fig. 9.2. The impact of ﬁnding εS on the hypothesis h : B = no.

Impact of Evidence

1

0.8

0.6

0.4

0.2

0

P(h)

P(h | ε \ εS)

P(h | ε)

Fig. 9.3. The impact of ﬁnding εS on the hypothesis h : B = yes.

ﬁnding εS is included than when it is excluded, but not as high as the prior
though. The posterior is lower than the prior. This implies that the combined
eﬀect of the evidence acts against the hypothesis.

The numbers in the two graphs are pairwise complementary since B is

binary.

When considering the impact of ﬁndings given a large set of evidence it
may be an advantage to use a cost-of-omission threshold to focus on ﬁndings
with a cost-of-omission greater than the threshold.

Example 9.7. In Example 9.6 the cost-of-omission of ﬁnding εS is 0.03, i.e.,

c(P(B | ε), P(B | ε \ {εS})) = 0.03.

Further information on hypothesis driven conﬂict analysis can be found

in Suermondt (1992).

Exercises

269

9.3 Summary

In this chapter we have considered evidence and hypothesis driven conﬂict
analysis in Bayesian networks.

The objective of evidence driven conﬂict analysis is to detect possible
conﬂicts in the evidence. To support this analysis, we have deﬁned a conﬂict
measure that is simple to compute. The conﬂict measure is computed based
on an alternative and much simpler model (the straw model). The conﬂict
measure is deﬁned such that a positive value is an indication that a conﬂict
may be present in the evidence. Once a possible conﬂict is detected, we try to
trace and resolve the conﬂict. We say that a hypothesis may resolve the conﬂict
if the log of the normalized likelihood of the hypothesis is greater than the
conﬂict. Furthermore, a positive conﬂict measure may originate from a rare
case.

The objective of hypothesis driven conﬂict analysis is to investigate the
impact of a single piece of evidence on the probability of a hypothesis com-
pared with the impact of all the evidence. To support this investigation, we
have deﬁned a cost-of-omission measure. The cost-of-omission measure is used
to measure the diﬀerence between including and excluding the selected piece
of evidence on the probability of the hypothesis given evidence. In hypothesis
driven conﬂict analysis we relate the prior probability of the hypothesis to the
probability of the hypothesis given the entire set of evidence, and the prob-
ability of the hypothesis given the entire set of evidence except the selected
piece of evidence. This enables us to determine whether or not a single piece
of evidence conﬂicts with the remaining set of evidence with respect to the
probability of the hypothesis.

In Chapter 10 we consider sensitivity analysis. Evidence sensitivity analy-
sis is to determine the sensitivity of the posterior probability of a hypothesis
relative to observations made. Parameter sensitivity is to determine the sen-
sitivity of the posterior probability of a hypothesis relative to parameters of
the model.

Exercises

Exercise 9.1. From Example 2.4 on page 25, we know that Dr Watson makes
frequent calls to Mr Holmes regarding the burglar alarm, however, till now
the cause of activation of the alarm has been small earthquakes or a big truck
passing by near the house. Every time Mr Holmes rushes home, just to ﬁnd
that everything is in order; so now Mr Holmes is installing a seismometer in
his house with a direct line to his oﬃce. In this exercise we assume P(B) =
P(E) = (0.1, 0.9).

The revised model in Figure 9.4 captures the situation where Mr Holmes
has installed a seismometer in his house with a direct line to the oﬃce. As-
sume S has states reﬂecting no, some and large vibrations in the house. The
conditional probability distribution P(S | B, E) is shown in Table 9.2.

270

9 Conﬂict Analysis

E

S

R

B

A

W

Fig. 9.4. Mr Holmes installs a seismometer with a direct line to his oﬃce.

B

no
no
yes
yes

E

no
yes
no
yes

no

0.97
0.01
0.01
0

S
some

0.02
0.97
0.02
0.03

large

0.01
0.02
0.97
0.97

Table 9.2. The conditional probability distribution P(S | B, E).

(a) One afternoon Dr Watson calls again and announces that Mr Holmes’
alarm has gone oﬀ. Mr Holmes checks the seismometer, it is in state no.
Are the two observations in conﬂict?

(b) Mr Holmes looks out his window. It rains heavily. When it rains heavily
a ﬂood is likely to occur. Extend the model in Figure 9.4 to capture these
events when the prior of rain is 0.01 and rain causes a ﬂood in one out of
ten cases. The conditional probability table P(A | B, E, F) where F represents
ﬂood is shown in Table 9.3.

E

no
no
no
no
yes
yes
yes
yes

B

no
no
yes
yes
no
no
yes
yes

F

no
yes
no
yes
no
yes
no
yes

A

no

0.99
0.01
0.01
0
0.01
0
0
0

yes

0.01
0.99
0.99
1
0.99
1
1
1

Table 9.3. The conditional probability distribution P(A | B, E, F).

Are the observations in conﬂict in this model and what is the value of the
conﬂict measure?

(c) Is there a potential explanation of the value of the conﬂict measure?

Exercises

271

(d) What is the partial conﬂict of each subset of the observations and what

conclusion can be derived from the partial conﬂicts?

Exercise 9.2. Consider again the model with a seismometer of Mr Holmes
in Exercise 9.1.

(a) Perform hypothesis driven conﬂict analyses with respect to both Burglar =

yes and Earthquake = yes.

(b) What is the cost-of-omission for εR with respect to Burglar and Earthquake?

10

Sensitivity Analysis

We construct probabilistic networks to support and solve problems of reason-
ing and decision making under uncertainty. In problems of reasoning under
uncertainty the posterior probability of a single hypothesis variable is some-
times of interest. When the evidence set consists of a large number of ﬁndings
or even when it consists of only a small number of ﬁndings questions concern-
ing the impact of subsets of the evidence on the hypothesis or a competing
hypothesis emerge.

Evidence sensitivity analysis may, for instance, give answers to questions
like what are the minimum and maximum beliefs produced by observing a vari-
able, which evidence acts in favor of or against a hypothesis, which evidence
discriminates one hypothesis from an alternative hypothesis, and what if a
certain observed variable had been observed to a value diﬀerent from the ac-
tual value? Knowing the answers to these and similar questions may help to
explain and understand the conclusions reached by the model as a result of
probabilistic inference. It will also help to understand the impact of subsets
of the evidence on a certain hypothesis and alternative hypotheses.

Evidence sensitivity analysis is not the only possible kind of sensitivity
analysis that can be performed on a probabilistic network. Parameter sen-
sitivity analysis is another type of sensitivity analysis that is supported by
probabilistic networks. We focus on parameter sensitivity analysis in discrete
Bayesian networks. The parameters considered in parameter sensitivity analy-
sis are the entries of the conditional probability distributions speciﬁed in the
Bayesian network. The analysis is performed relative to a hypothesis and a
given set of evidence. It has been shown that there is a (surprisingly) simple
correlation between the probability of a set of evidence and an entry of a con-
ditional probability distribution. The probability of the evidence is a linear
function of the parameter. This knowledge can be exploited to determine the
functional relation between the probability of a hypothesis given a subset of
evidence and a parameter of a conditional probability distribution.

Parameter sensitivity analysis is particularly useful for identifying para-
meters of a probabilistic network that have a large or small impact on the

274

10 Sensitivity Analysis

probability of a hypothesis given evidence. When knowledge elicitation re-
sources are limited, parameter sensitivity analysis is a useful tool for identi-
fying and focusing resources on the parameters that are most inﬂuential on
the posterior probability of a hypothesis given evidence. That is, parameter
sensitivity analysis can be used in an attempt to focus knowledge elicitation
resources in the model construction process.

In Section 10.1, we introduce evidence sensitivity analysis. A distance mea-
sure designed to measure the impact of evidence on the probability of a hy-
pothesis is introduced. In the following subsections we consider identifying
minimum and maximum beliefs in a hypothesis given various subsets of the
evidence, the impact of diﬀerent evidence subsets on a hypothesis, how subsets
of the evidence discriminates between a pair of competing hypotheses, what-if
analysis, and the impact of ﬁndings on a hypothesis variable. In Section 10.2
parameter sensitivity analysis is introduced.

10.1 Evidence Sensitivity Analysis

Evidence sensitivity analysis (SE analysis) is the analysis of how sensitive the
results of a belief update (propagation of evidence) is to variations in the set
of evidence (observations, likelihood, etc.).

Consider the situation where a decision maker has to make a decision based
on the probability distribution of a hypothesis variable. It could, for instance,
be a physician deciding on a treatment of a patient given the probability dis-
tribution of a disease variable. Prior to deciding on a treatment the physician
may have the option to investigate the impact of the collected information on
the posterior distribution of the hypothesis variable. That is, given a set of
ﬁndings and a hypothesis, which sets of ﬁndings are in favor of, against, or
irrelevant for the hypothesis, which sets of ﬁndings discriminate the hypothe-
sis from an alternative hypothesis, what if a variable had been observed to a
diﬀerent value than the one observed, etc. These questions can be answered
by SE analysis.

Given a Bayesian network model and a hypothesis variable, the task is to
determine how sensitive the belief in the hypothesis variable is to variations in
the evidence. We consider one-step look-ahead hypothesis driven SE analysis
on discrete random variables.

Example 10.1 (Asia). As an example we consider SE analysis on the Asia
example shown in Figure 10.1 (see Example 4.2 on page 69 for more details).
The hypothesis variable is Bronchitis (B) and the initial set of evidence is ε =
{εS, εD} = {S = no, D = yes}. That is, we are considering whether or not the
patient is suﬀering from bronchitis after observing that the patient does not
smoke (Smoker = no), but has shortness of breath (Dyspnoea = yes).

This example is used in the following sections to illustrate concepts of SE

analysis.

10.1 Evidence Sensitivity Analysis

275

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 10.1. A graph specifying the independence and dependence relations of the
Asia example.

10.1.1 Distance and Cost-of-Omission Measures

The main purpose of hypothesis driven SE analysis is to investigate how
changes in the set of evidence impact the probability of a hypothesis. In order
to perform this investigation, two distance measures are required. Each dis-
tance measure will provide a numerical value specifying the distance between
either two probabilities or two probability distributions.

Let X be a hypothesis variable with state space dom(X) = {x1, . . . , xn} and
let ε = {ε1, . . . , εm} be a set of evidence (ﬁndings). We let εY ∈ ε denote the
ﬁnding on variable Y ∈ X(ε).

0, as

The distance d(p, q) between two probabilities p and q is deﬁned, for p (cid:7)=
(cid:20)
(cid:20)
(cid:20)
(cid:20)

d(p, q) =

(cid:20)
(cid:20)
(cid:20)
(cid:20) .

− 1

q
p

This measure is, for instance, useful for measuring the distance between the
probability P(x | ε) of hypothesis x given evidence ε and the probability P(x | ε\
{εi}) of hypothesis x given evidence ε \ {εi}; i.e., the set of evidence where εi
is excluded from ε.

A pair of probabilities p and q are said to be almost equal when their

distance d(p, q) is below a predeﬁned threshold δ; i.e., d(p, q) < δ.

The cost-of-omission c(P(X | ε), P(X | ε \ {εi})) of εi was deﬁned in Sec-

tion 9.2.1 on page 267 as:

c(P(X | ε), P(X | ε \ {εi})) =

(cid:10)

x∈dom(X)

P(x | ε) log

(cid:7)

P(x | ε)
P(x | ε \ {εi})

(cid:8)

.

Notice the diﬀerence between the distance measure and the cost-of-
omission measure. The distance measure evaluates the distance between prob-
ability values whereas the cost-of-omission measure evaluates the distance
between two posterior probability distributions relative to omitting a cer-
tain ﬁnding εi from the evidence ε. The cost-of-omission measure is a special

276

10 Sensitivity Analysis

case of the more general cross entropy distance (or Kullback–Leibler distance)
measure between a probability distribution P and an approximation P(cid:2) of P:

H(P, P(cid:2)) =

(cid:10)

P(x) log

x∈dom(X)

(cid:7)

(cid:8)

.

P(x)
P(cid:2)(x)

The cost-of-omission measure is, for instance, useful for measuring the
distance between the posterior probability distribution P(X | ε) of hypothesis
variable X given evidence ε and the posterior probability distribution P(X | ε \
{εi}) of hypothesis variable X given evidence ε \ {εi}; i.e., the set of evidence
where εi is excluded from ε.

In the following sections, the distance measures deﬁned above are used to

introduce diﬀerent concepts related to SE analysis.

10.1.2 Identify Minimum and Maximum Beliefs

As part of performing SE analysis we may be interested in knowing the
minimum and maximum values of the posterior belief for each possible
state x ∈ dom(X) of the hypothesis variable X given all possible observa-
tions on a given variable Y (cid:7)∈ X(ε); i.e., what are the minimum and maximum
values of P(x | ε, y) as a function of y ∈ dom(Y).

The minimum miny∈dom(Y) P(x | ε, y) and maximum maxy∈dom(Y) P(x | ε, y)
values of the posterior belief are determined by entering and propagating each
state y of the information variable Y. This analysis requires one belief update
for each state of variable Y.

This analysis identiﬁes the range of the posterior belief in a hypothesis as
a function of possible observations on an unobserved variable. This may help
to determine the impact of a possible observation on the probability of the
hypothesis.

Example 10.2 (Example 10.1 continued). Table 10.1 shows the sensitivity of
the posterior probability distribution P(B | ε, a) of the hypothesis variable B
relative to instantiations of the unobserved variable Asia (A).

b mina P(B = b | ε, a)

P(B = b | ε) maxa P(B = b | ε, a)

no
yes

0.228
0.764

0.228
0.772

0.236
0.772

Table 10.1. Sensitivity of the posterior probability distribution of the hypothesis
variable B to ﬁndings on A.

For each state b ∈ dom(B) of B the minimum posterior belief mina P(B =
b | ε, a), the current belief P(B = b | ε), and the maximum posterior be-
lief mina P(B = b | ε, a) is shown. From the table it is clear that an observation

10.1 Evidence Sensitivity Analysis

277

on A would produce insigniﬁcant variations in the posterior belief in any state
of B.

10.1.3 Impact of Evidence Subsets

Investigation of the impact of diﬀerent subsets of the evidence ε on each
state x ∈ dom(X) of the hypothesis variable X is a useful part of SE analysis.
Investigating the impact of diﬀerent subsets of the evidence on states of the
hypothesis may help to determine subsets of the evidence acting in favor of
or against each possible hypothesis.

The impact of a subset of the evidence ε(cid:2) ⊆ ε on a state x of the hypothesis
variable X is determined by computing the normalized likelihood NLof the
hypothesis x given evidence ε(cid:2); i.e.,
= P(ε(cid:2), x)/P(x)
P(ε(cid:2))

= P(x | ε(cid:2))P(ε(cid:2))/P(x)
P(ε(cid:2))

NL = P(ε(cid:2) | x)
P(ε(cid:2))

= P(x | ε(cid:2))
P(x)

,

where we assume P(ε(cid:2)) > 0 and P(x) > 0. This fraction is computed by
entering and propagating ε(cid:2). Therefore, this analysis requires one belief update
for each subset ε(cid:2) of the evidence ε.

Each normalized likelihood is a measure of the impact of a subset of evi-
dence on the hypothesis. By comparing the normalized likelihoods of diﬀerent
subsets of the evidence, we compare the impacts of the subsets of evidence on
the hypothesis.

Example 10.3 (Example 10.2 continued). Assume that we observe the patient
to have a positive X-ray result X = yes, such that the set of evidence is ε =
{εS, εD, εX} = {S = no, D = yes, X = yes}. Table 10.2 shows the normalized
likelihood of the hypothesis hB : B = yes given the evidence ε = {εS, εD, εX}.

ε(cid:3)
εX
εS
εX
εS
−
εS
−
εS
− εX
− εX
−
−
−
−

NL

1.256
0.667
1.675
0.667
1.515
1.125
1.853
1

εD
−
εD
−
εD
−
εD
−

Table 10.2. Normalized likelihood of hypothesis hB given all subsets of the evi-
dence ε.

From Table 10.2 it is clear that the ﬁnding εD on D acts in favor of the
hypothesis hB. On the other hand, the evidence εS acts slightly against the

278

10 Sensitivity Analysis

hypothesis hB while εX is irrelevant, against and in favor of hB depending on
the remaining evidence.

10.1.4 Discrimination of Competing Hypotheses

A central question considered by SE analysis is how diﬀerent subsets of the
evidence discriminate between competing hypotheses. The challenge is to com-
pare the impact of subsets of the evidence on competing hypotheses.

We consider the discrimination between two diﬀerent hypotheses repre-
sented as states of two diﬀerent variables. Thus, let X be the hypothesis vari-
able of interest and let Y be an alternative hypothesis variable where X (cid:7)= Y.
In Section 3.5, we describe how the discrimination of a pair of competing
hypotheses x ∈ dom(X) and y ∈ dom(Y) may be based on the calculation of
Bayes’ factor B (or Bayesian likelihood ratio) for all subsets ε(cid:2) ⊆ ε of a set of
evidence ε:

B =

posterior odds ratio
prior odds ratio

= P(x | ε(cid:2))/P(y | ε(cid:2))
P(x)/P(y)

= P(ε(cid:2) | x)
P(ε(cid:2) | y)

= L(x | ε(cid:2))
L(y | ε(cid:2))

,

(10.1)

where we assume P(x) > 0, P(y) > 0, and P(ε(cid:2)) > 0. Bayes’ factor is the ratio
of the likelihoods of hypothesis x and y given the evidence ε(cid:2).

From Equation 10.1 we see that

B > 1 if the evidence ε(cid:2) provides more support for x than for y,
B < 1 if the evidence ε(cid:2) provides less support for x than for y, and
B = 1 if the evidence ε(cid:2) does not provide useful information for diﬀerentiating

between x and y.

This analysis requires one belief update for each subset ε(cid:2) ⊆ ε.

Example 10.4 (Example 10.3 continued). Assume that hL : Cancer = yes is an
alternative hypothesis to the hypothesis hB. Table 10.3 shows Bayes’ factor
for the hypothesis hB and the alternative hypothesis hL.

ε(cid:3)

εX
εS
εX
εS
−
εS
−
εS
− εX
− εX
−
−
−
−

B

0.281
0.258
3.869
3.667
0.134
0.127
0.992
1

εD
−
εD
−
εD
−
εD
−

Table 10.3. Discrimination between hypothesis hB and the alternative hypothe-
sis hL.

10.1 Evidence Sensitivity Analysis

279

From Table 10.3 it is clear that subsets {εS} and {εS, εD} acts in favor of
the hypothesis hB when compared with the alternative hypothesis hL. On the
other hand, the remaining subsets act slightly against the hypothesis hB when
compared with the alternative hypothesis hL.

10.1.5 What-If Analysis

In what-if analysis the type of question considered is the following. What if the
ﬁnding on a discrete random variable Y ∈ X(ε) had been the observation Y = y(cid:2)
instead of Y = y (represented by the ﬁnding εY ∈ ε, where ε is the set of
evidence)? We consider a hypothesis driven approach to what-if SE analysis.
Hypothesis driven what-if analysis is performed by computing the poste-
rior probability distribution P(X | ε \ {εY}, y(cid:2)) of the hypothesis variable X for
each possible state y(cid:2) (cid:7)= y of the observed variable Y.

The posterior probability distribution P(X | ε \ {εY}, y(cid:2)) speciﬁes the impact
of each possible instantiation of Y on the posterior distribution of the hypoth-
esis variable X. The analysis requires one belief update for each y(cid:2) ∈ dom(Y).
Notice that εY need not be an instantiation of Y; i.e., εY may be soft evidence.

Example 10.5 (Example 10.4 continued). For each ﬁnding variable Y we may
consider the impact of each possible observation Y = y. Table 10.4 shows
the posterior belief in the hypothesis B = yes given the evidence where the
ﬁnding y is substituted with each possible state y(cid:2) ∈ dom(Y).

Y

y(cid:3)

P(B = yes | ε \ {εY }, y(cid:3))

D no
D yes

S
S

X
X

no
yes

no
yes

0.092
0.565

0.565
0.714

0.774
0.565

Table 10.4. What-if analysis on ﬁndings.

From Table 10.4 it is clear that changing the observation on D from yes to no
has a signiﬁcant impact of the posterior belief in the hypothesis B = yes. On
the other hand, the posterior belief in the hypothesis B = yes has a lower
sensitivity to observations on S and X.

Since each ﬁnding (i.e., εS, εX, or εD) is an instantiation, one row for each
observed variable Y corresponds to the posterior belief in the hypothesis B =
yes. That is, P(B = yes | ε) = 0.565 is represented three times in the table.

280

10 Sensitivity Analysis

10.1.6 Impact of Findings

Let X = x be the hypothesis of interest where X is the hypothesis variable
and let ε be the entire set of evidence. The impact of each ﬁnding εY ∈ ε
on the probability of x is determined by computing and comparing the prior
probability of the hypothesis, P(x), the posterior probability of the hypothesis
given the entire set of evidence, P(x | ε), and the posterior probability of the
hypothesis given the entire set of evidence except the ﬁnding εY, P(x | ε \ {εY}).
To relate the impact of individual ﬁndings on the probability of the hy-
pothesis we deﬁne the notions of an important ﬁnding, a redundant ﬁnding,
and an irrelevant ﬁnding:

• A ﬁnding εY ∈ ε is important when the diﬀerence between the proba-
bility q = P(x | ε \ {εY}) of the hypothesis given the entire set of evidence
except εY and the probability p = P(x | ε) of the hypothesis given the entire
set of evidence is too large; i.e., the probabilities p and q are not almost
equal (d(p, q) ≥ δ).

• A ﬁnding εY ∈ ε is redundant when q = P(x | ε \ {εY}) is almost equal

to p = P(x | ε); i.e., d(p, q) < δ.

• A ﬁnding εY ∈ ε is irrelevant when q = P(x | ε(cid:2) \ {εY}) is almost equal
to p = P(x | ε(cid:2)) for all subsets ε(cid:2); i.e., d(p, q) < δ for all subsets ε(cid:2). That
is, the ﬁnding εY is redundant for all subsets of the evidence.

The term almost equal is deﬁned based on the distance measure introduced
in Section 10.1.1. Similarly, a suﬃcient set of evidence is deﬁned as:

• A subset of evidence ε(cid:2) ⊆ ε, e.g., the entire set of evidence ε except a
certain ﬁnding εY, issuﬃcient when q = P(x | ε(cid:2)) is almost equal to p =
P(x | ε); i.e., d(p, q) < δ.

The impact of each ﬁnding εY may be considered for each state or a certain
state of the hypothesis variable X. Suﬃciency δs and importance δi thresholds
should be speciﬁed by the user.

Example 10.6 (Example 10.5 continued). We may be interested in considering
the impact of each ﬁnding εY ∈ ε on the probability of the hypothesis B = yes
by comparing P(B = yes), P(B = yes | ε), and P(B = yes | ε \ {εY}). Table 10.5
shows the prior belief in the hypothesis B = yes, the posterior belief given all
evidence P(B = yes | ε), and the posterior belief given all evidence except a
single ﬁnding P(B = yes | ε \ {εY}).
From Table 10.5 we make the following observations:

• The ﬁnding εS is important. At suﬃciency threshold δs = 0.02 the ﬁnd-
ing εS is redundant and ε \ {εS} is suﬃcient. At cost-of-omission thresh-
old δo = 0.03 the evidence εS would not be included in the analysis.

• The ﬁnding εX is important.
• The ﬁnding εD is important.

10.2 Parameter Sensitivity Analysis

281

εY

εS
εX
εD

P(B = yes)

P(B = yes | ε \ {εY })

P(B = yes | ε)

0.45
0.45
0.45

0.682
0.754
0.3

0.565
0.565
0.565

Table 10.5. Findings impact analysis.

εY

εS
εX
εD

c(P(B | ε), P(B | ε \ {εY }))

d(P(B = yes | ε), P(B = yes | ε \ {εY }))

0.03
0.085
0.151

0.171
0.25
0.884

Table 10.6. Cost-of-omission and distance in posterior beliefs of the hypothesis for
each ﬁnding.

The subset ε(cid:2) = {εS, εX, εD} = ε is, of course, also suﬃcient. The analysis is
performed using threshold values δo = 0.0001, δs = 0.02, and δi = 0.05.
Table 10.6 shows the cost-of-omission c(P(B | ε), P(B | ε\{εY})) and the distance
d(P(B = yes | ε), P(B = yes | ε \ {εY})) for each ﬁnding εY.

10.2 Parameter Sensitivity Analysis

Parameter sensitivity analysis (SP analysis) is the analysis of how sensitive
the results of a belief update (propagation of evidence) is to variations in the
value of a parameter of the model. The parameters of a model are the entries
of the conditional probability distributions.

Consider the situation where company management allocates resources to
research and development projects based on an estimation of projects’ suc-
cesses. The success of a project depends on the ability of the project manage-
ment to obtain certain environmental permissions from the authorities. This
and other properties of the domain are modeled as a Bayesian network. As
part of the model construction the knowledge engineers (and the management
of the company) would like to assess how sensitive the conclusion of the model
(i.e., the probability of project success) is to the prior probability of a spe-
ciﬁc environmental permission being obtained. Parameter sensitivity analysis
is designed to answer such questions. Given a Bayesian network model, a hy-
pothesis and a set of evidence, the task is to determine the sensitivity of the
posterior belief in the hypothesis to variations in the value of an assessed
parameter.

We consider scenario-based SP analysis on discrete random variables with
respect to changes in a single parameter value where a scenario S is deﬁned
as a vector consisting of a hypothesis variable H, a state of the hypothesis
variable h and a set of evidence ε, i.e., S = (H, h, ε).

282

10 Sensitivity Analysis

Example 10.7 (Apple Jack). Apple Jack, see Example 4.1 on page 66, is inter-
ested in computing the probability of his ﬁnest apple tree being sick. His hy-
pothesis is that the tree is sick, i.e., the hypothesis is Sick = yes. The evidence
available to support the reasoning of Apple Jack is that the tree is losing its
leaves. Thus, the scenario under consideration is S = (Sick, yes, {Loses = yes})
Given the Bayesian network shown in Figure 4.1 on page 66 and the condi-
tional probability distributions P(Sick) = (0.95, 0.05), P(Dry) = (0.9, 0.1) and
P(Loses | Sick, Dry) as speciﬁed in Table 4.1 on page 67, the posterior distrib-
ution of the hypothesis given the observation, P(Sick = yes | ε), is 31.62%.

How sensitive is this posterior probability to small variations in the quan-
tiﬁcation of the model? For instance, how would the posterior probability of
the hypothesis change if the prior probability of Dry = yes decreases from 0.1
to 0.075? Setting the prior probability of Dry = yes to 0.075, the posterior dis-
tribution of the hypothesis given the observation, P(Sick = yes | ε), is 36.64%.
This shows that the posterior probability of the hypothesis Sick = yes
(and other events) changes when the prior on Dry = yes is changed to 0.075
(from 0.1). The posterior probability of Sick = yes increases from 31.52%
to 36.64%. This seems intuitive as the prior of one cause decreases and the
posterior of another cause increases given the observed eﬀect. However, what if
the prior had been changed to a diﬀerent value? Is it necessary to compute the
posterior probability of the hypothesis for all possible values of P(Dry = yes),
i.e., the parameter we are investigating?

The aforementioned questions may be answered more eﬃciently using pa-

rameter sensitivity analysis.

10.2.1 Sensitivity Function

Parameter sensitivity analysis is based on the observation that the probability
of the evidence is a linear function of any single parameter in the model; i.e.,
any entry of any conditional probability distribution (Castillo, Guti´errez &
Hadi 1997, Coup´e & van der Gaag 1998). That is, y = P(ε) as a function of
a conditional probability t = P(X = x | pa(X) = z) has the simple form y =
α · t + β where α, β ∈ R. This implies that the conditional probability of a
hypothesis h given evidence ε as a function of a parameter t has the form

f(t) = P(h | ε)(t) = P(h, ε)(t)
P(ε)(t)

= α · t + β
γ · t + δ

,

where α, β, γ, δ ∈ R. Hence, the posterior probability P(h | ε) is a quotient of
two linear functions of the parameter t.

The function f(t) is known as the sensitivity function. The coeﬃcients of
the sensitivity function are determined separately for its numerator and de-
nominator functions. The coeﬃcients of a linear function can be determined
from two values of the function for two diﬀerent values of the parameter. We
can compute the value of the function for two diﬀerent values of the para-
meter by propagating the evidence twice (once for each of the two parameter

10.2 Parameter Sensitivity Analysis

283

values). When determining the coeﬃcients of the sensitivity function, we use
proportional scaling to change the remaining related parameters such that
they keep the original proportion. This implies that when we change the pa-
rameter value for t, the remaining probability values for the corresponding
parent conﬁguration (i.e., P(X = x(cid:2) | pa(X) = z) for all x (cid:7)= x(cid:2)) are scaled
proportionally. We need to scale the values such that the values sum to one;
x P(x | pa(X)) = 1. Assume P(X = x(cid:2) | pa(X) = z) = (p1, . . . , pn) is the
i.e.,
initial assessment of the probability of X given pa(X) = z and pi is the pa-
rameter value under consideration. Proportional scaling on pj for j (cid:7)= i when
changing pi to pi∗ amounts to computing

(cid:6)

j = pj(1 − p∗
i )
p∗
(cid:6)
j(cid:6)=i pj

,

where (p∗

1, . . . , p∗

n) is the updated probability of X given pa(X) = z.

We assume that each parameter can be varied independently of other
parameters and that each parameter is non-extreme, i.e., it can be varied in
an open interval around its initial assessment.
Example 10.8 (Proportional Scaling). Let S = (Dry, yes, {Loses = yes}) be the
scenario under consideration. Assume that the variable Dry has three states no,
dry and very dry with a prior distribution P(Dry) = (0.1, 0.6, 0.3). If we want to
investigate the impact of adjusting the parameter P(Dry = yes) = 0.1 to 0.075,
then it is necessary to adjust the values of the other two parameters such that
all three adjusted parameters sum to one. This is achieved by proportional
scaling such that the adjusted prior distribution is

P(Dry) = (0.075,

0.6 · (1 − 0.075)
0.6 + 0.3
0.2775
0.9

= (0.075,

0.555
0.9
= (0.075, 0.6167, 0.3083).

)

,

,

0.3 · (1 − 0.075)
0.6 + 0.3

)

When a variable has only two states a change in the value of one parameter

must induce a similar (but opposite) change in the other parameter.
Example 10.9 (Sensitivity Function). Let S = (Sick, yes, ε = {Loses = yes}) be
the scenario under consideration. Hence, the hypothesis under investigation
is Sick = yes while the parameter in focus is t = P(Dry = yes). The sensitivity
function f(t) where t is the parameter for P(Dry = yes) is

f(t) = P(Sick = yes | Loses = yes)
= P(Sick = yes, Loses = yes)

P(Loses = yes)

= α · t + β
γ · t + δ
= 0.0025 · t + 0.045
0.791 · t + 0.064

284

10 Sensitivity Analysis

The coeﬃcients of denominator and numerator functions are determined sep-
arately. Both functions are linear in the parameter t. Thus, the coeﬃcients
of each function can be determined by propagating evidence for two diﬀerent
parameter values. For instance, the coeﬃcients γ and δ of the denominator
can be determined as
= 0.2222 − 0.1431
γ = P(Loses = yes)(t1) − P(Loses = yes)(t0)
0.2 − 0.1
δ = P(Loses = yes)(t0) − γ · t0 = 0.1431 − 0.791 · 0.1 = 0.064

= 0.791

t1 − t0

where t0 = 0.1 and t1 = 0.2 are two diﬀerent values of the parameter t.

The graph of the sensitivity function f(t) for all possible values of t, i.e,

values of t between zero and one, is plotted in Figure 10.2.

1

0.8

0.6

0.4

0.2

0

0

P(Sick = yes | ε)

(t0, f(t0))

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Fig. 10.2. The graph of the sensitivity function f(t) = P(Sick = yes | Loses = yes) as
a function of t = P(Dry = yes).

Figure 10.2 shows that the minimum value of the probability of the hy-
pothesis is 0.0556 for t = 1 while the maximum value of the probability of
the hypothesis is 0.7031 for t = 0. Thus, no matter what value of t is speci-
ﬁed P(Sick = yes | ε) is between 0.0556 and 0.7031. In addition, it is clear from
Figure 10.2 that the posterior probability of the hypothesis is more sensitive
to small variations in the parameter value when the initial parameter value
is in the range from 0 to, say, 0.25 than when the initial parameter is in the
range from 0.25 to 1.

Performing two full propagations of the evidence for each parameter value
may be ineﬃcient if the number of parameters is large. Jensen (2001) describes
a modeling technique for computing the coeﬃcients of the linear function
based on introducing an auxiliary variable (for each parameter inspected). By

10.2 Parameter Sensitivity Analysis

285

introducing an auxiliary variable it is possible to reduce the number of mes-
sages to be passed in the junction tree representation. Madsen (2005) describes
a propagation method that makes it possible to compute the coeﬃcients for
all parameters from a single propagation in a junction tree representation.

10.2.2 Sensitivity Value

The partial derivative f(cid:2)(t) = ∂P(h | ε)/∂t of the sensitivity function f(t) with
respect to t expresses how much P(h | ε)(t) changes as a function of t given
small variations in the initial assessment. The partial derivative f(cid:2)(t) of the
sensitivity function on t is

f(cid:2)(t) = α · t + β
(γ · t + δ)2 .

The partial derivative reﬂects how the posterior probability of the hypoth-
esis h changes with changes in the parameter t under evidence scenario ε.
Wang, Rish & Ma (2002) deﬁnes parameter sensitivity S(t | h, ε) as f(cid:2)(t) =
∂P(h | ε)/∂t. The sensitivity value of a parameter is deﬁned as |S(t | h, ε)|; i.e.,
the absolute value of the derivative of the sensitivity function at the initial
assessment of the parameter (Laskey 1993). The sign of S(t | h, ε) indicates
whether the probability of the hypothesis is increasing or decreasing in t.

The sensitivity value can be used as a guide to identify parameter assess-
ments where small variations in the value may have the largest impact on
the posterior probability of the hypothesis given the evidence. In general, a
parameter is of interest when the sensitivity value is greater than zero. Para-
meter sensitivity analysis enables us to identify the most important parameter
assessments in the Bayesian network. Let t(cid:2) and t(cid:2)(cid:2) be two parameters. If t(cid:2)
has a higher sensitivity value than t(cid:2)(cid:2), then t(cid:2) will intuitively induce a larger
change on the probability of interest than t(cid:2)(cid:2) given the same variation in the
parameter assessments.

When considering sensitivity analysis with respect to multiple evidence
sets we may choose to weigh the parameter sensitivity with the probability
of the evidence, i.e., P(ε) · S(t | h, ε) as diﬀerent evidence scenarios may have
diﬀerent probabilities. Parameter importance deﬁnes the importance of a pa-
rameter across multiple evidence scenarios ε and multiple hypotheses h. Wang
et al. (2002) deﬁnes parameter importance I(t) as

I(t) = 1
mn

(cid:10)

h,ε

S(t | h, ε) = 1
mn

(cid:10)

h,ε

∂P(h | ε)
∂t

,

where m is the number of hypotheses and n is the number of evidence scenar-
ios. The importance value of a parameter is deﬁned as |I(t0)|; i.e., the absolute
value of the parameter importance function at the initial assessment of the
parameter.

286

10 Sensitivity Analysis

Example 10.10 (Sensitivity Value). Let S = (Dry, yes, {Loses = yes}) be the
scenario under consideration. The initial value of the parameter of inter-
est t = P(Dry = yes) is t0 = 0.1. This implies that the sensitivity value
of the parameter t is f(cid:2)(t0) =17 .

On the other hand, the conditional probability P(Loses = yes | Dry =

yes, Sick = yes) has sensitivity function

f(t) = 0.005 · t + 0.13835
0.005 · t + 0.0405

.

The initial parameter assessment is t0 = 0.95 and the sensitivity value is 0.24.

10.2.3 Admissible Deviation

Parameter sensitivity values may be used to focus the knowledge elicitation
resources in the model construction process. The sensitivity function, its deriv-
ative, and the sensitivity value are not suﬃcient tools for analyzing how the
change in a parameter t may change the most likely state of a hypothesis
variable H.

We extend the basic sensitivity analysis method with the calculation of an
interval within which the parameter under investigation can be varied without
changing the most likely value of the hypothesis variable of interest. Let H
be the hypothesis variable of interest, ε the evidence scenario under consid-
eration, and t the parameter under investigation with initial assessment t0.
The admissible deviation of t from t0 is a pair of real numbers (r, s) such
that t can be varied from min(0, t0 − r) to max(1, t0 + s) without changing
the most likely state of H, i.e., arg max P(h | ε) is unchanged by the devia-
tion of t from t0. The values of (r, s) should be the largest such numbers for
which the property is satisﬁed (Laskey 1993). The admissible deviation inter-
val is [min(0, t0 − r); max(1, t0 + s)]. Notice that the interval specifying the
admissible deviation is in general not symmetric around the value t0, i.e., in
general r is not equal to s.

Some parameters may take any value without changing the most likely
state of H. This implies that the value of the parameter can be varied over
the entire range [0; 1] without changing the most likely state of the hypothesis.
In this case the admissible deviation interval is speciﬁed as (∞, ∞).

Example 10.11 (Admissible Deviation). Assume that Apple Jack is interested
in determining whether or not his apple tree is sick. The hypothesis variable
of interest is Sick, the evidence scenario is Loses = yes, and the parameter
under investigation is t = P(Dry = yes). How much can the parameter t be
varied without inducing a change in the most likely state of Sick? Apple Jack
wants to know the admissible deviation of t.

The sensitivity function f(t) for Sick = no is

f(t) = 0.7885 · t + 0.019
0.791 · t + 0.064

.

10.3 Summary

287

P(Sick = yes | ε)
P(Sick = no | ε)

(0.033, 0.5)

(t0, f(t0))

(cid:2)

admissible deviation

(cid:1)

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

1

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

0

Fig. 10.3. The graph of the sensitivity functions for Sick = yes and Sick = no.

The sensitivity functions for Sick = no and Sick = yes are shown in

Figure 10.3.

For t = 0.033 we have P(Sick = yes | ε) = P(Sick = no | ε) = 0.5. Since
the hypothesis variable Sick is binary, the two states have equal probability
when they both have probability 0.5. Assuming that t0 = 0.1 the admissible
deviation of t is the pair (0.0967, ∞), i.e. the value of the parameter t can be
varied from 0.033 = 0.1 − 0.0967 to 1 without changing the hypothesis with
highest probability.

10.3 Summary

In this chapter we have considered evidence and parameter sensitivity analysis
in Bayesian networks.

The objective of evidence sensitivity analysis is to investigate how sensitive
the result of a belief update is to variations in the set of evidence. To support
this analysis, we have deﬁned two distance measures designed to provide a
numerical value specifying the distance between either two probabilities or two
probability distributions. Based on the distance measures, we have described
ﬁve diﬀerent types of evidence sensitivity analysis: identifying minimum and
maximum beliefs, impact of evidence subsets, discrimination of competing
hypotheses, what-if analysis, and impact of ﬁndings.

The objective of parameter sensitivity analysis is to investigate how sensi-
tive the result of a belief update is to variations in a parameter of the model.
It has been shown that there is a simple functional relation between the prob-
ability of a set of evidence and an entry of a conditional probability table;
i.e., a parameter. The probability of the evidence is a simple linear function
of the parameter. This insight may be used to perform parameter sensitivity

288

10 Sensitivity Analysis

analysis on the posterior probability of a hypothesis given a set of evidence.
Parameter sensitivity values may be used to focus the knowledge elicitation
resources in the model construction process.

In Chapter 11 we consider value of information analysis. Value of informa-

tion analysis is to compute the value of potential new observations.

Exercises

Exercise 10.1. In the morning when Mr Holmes leaves his house he realizes
that his grass is wet. He wonders whether it has rained during the night or
whether he has forgotten to turn oﬀ his sprinkler. He looks at the grass of his
neighbors, Dr Watson and Mrs Gibbon. Both lawns are dry and he concludes
that he must have forgotten to turn oﬀ his sprinkler. (This problem was also
discussed in Exercise 6.3 on page 175.)

The structure of a network for modeling the above scenario is shown in

Figure 10.4.

Rain

Sprinkler

Gibbon (cid:3)s lawn

Watson (cid:3)s lawn

Holmes (cid:3) lawn

Fig. 10.4. The Wet Grass network.

Prior probability distributions are P(Rain) =P (Sprinkler) = (0.1, 0.9) while
the conditional probability distributions are shown in Table 10.7 to Table 10.9.

Rain

Sprinkler

no
no
yes
yes

no
yes
no
yes

Holmes (cid:3) lawn
wet
dry

1
0.1
0.01
0

0
0.9
0.99
1

Table 10.7. The conditional probability distribution P(Holmes (cid:3)
Sprinkler).

lawn | Rain,

The hypothesis under consideration is Sprinkler = yes.

(a) Identify the set of evidence.
(b) What is the impact of subsets of the evidence on the hypothesis?

Exercises

289

Gibbon (cid:3)s lawn
dry

wet

0.9
0.1

0.1
0.99

Rain

no
yes

Table 10.8. The conditional probability distribution P(Gibbon (cid:3)s lawn | Rain).

Watson (cid:3)s lawn
dry

wet

0.9
0.1

0.1
0.99

Rain

no
yes

Table 10.9. The conditional probability distribution P(Watson (cid:3)s lawn | Rain).

(c) What subsets of the evidence discriminate the hypothesis from the alter-

native hypothesis Rain = yes?

(d) How does the posterior distribution of the hypothesis change with changes

in the observed state for each evidence variable?

(e) What is the impact of each individual piece of evidence on the posterior

distribution of the hypothesis?

Exercise 10.2. Consider the Asia network shown in Figure 10.5 (see Exam-
ple 4.2 on page 68 for more details).

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 10.5. A graph specifying the independence and dependence relations of the
Asia example.

The Asia network consists of the three hypothesis variables Bronchitis,
Cancer, and Tuberculosis. The risk factors are Smoking and a recent visit to Asia
while the symptoms of the network are X ray and Dyspnoea. The risk factors
and symptoms are the possible observations a physician can make on a patient.

290

10 Sensitivity Analysis

Assume the physician is diagnosing a smoking patient with dyspnoea who
has recently been to Asia. The hypothesis under consideration is Bronchitis =
yes.

(a) Identify the set of evidence.
(b) What is the impact of subsets of the evidence on the hypothesis?
(c) What subsets of the evidence discriminate the hypothesis from the alter-

native hypothesis Cancer = yes?

(d) How does the posterior distribution of the hypothesis change with changes

in the observed state for each evidence variable?

(e) What is the impact of each individual piece of evidence on the posterior

distribution of the hypothesis?

Exercise 10.3. One in a thousand people has a prevalence for a particular
heart disease. There is a test to detect this disease. The test is 100% accurate
for people who have the disease and is 95% accurate for those who do not
(this means that 5% of people who do not have the disease will be wrongly
diagnosed as having it).

(a) If a randomly selected person tests positive, what is the probability that

the person actually has the heart disease?

(b) Compute the sensitivity function f(t) = P(Heart Disease = yes | Test =

yes)(t) where t = P(Heart Disease = yes).
(c) Compute the sensitivity value for t0 = 0.001.
(d) Identify the admissible deviation of t.

Exercise 10.4. Let us consider parameter sensitivity analysis in the Wet
Grass network (cf. Exercise 10.1).

(a) Compute the sensitivity function f(t) = P(Sprinkler = yes | Holmes (cid:2) lawn =

wet, Watson (cid:2)s lawn = dry)(t) where t = P(Rain = yes).

(b) Compute the sensitivity value for t0 = 0.2.
(c) Compute the sensitivity function f(t) = P(Rain = yes | Holmes (cid:2) lawn =

wet, Watson (cid:2)s lawn = dry)(t) where t = P(Rain = yes).

(d) Identify the admissible deviation of t when the hypothesis is Sprinkler = yes

and the alternative hypothesis is Rain = yes.

11

Value of Information Analysis

Probabilistic networks are constructed to support reasoning and decision mak-
ing under uncertainty. A common solution to a reasoning problem is the poste-
rior probability distribution over a hypothesis variable given a set of evidence.
Similarly, the solution to a decision making problem is an optimal decision
given a set of evidence. When faced with a reasoning or decision making
problem, we may have the option to consult additional information sources
for further information that may improve the solution. Value of information
analysis is a tool for analyzing the potential usefulness of additional informa-
tion before the information source is consulted.

We consider a one-step look-ahead hypothesis driven approach to value of
information (VOI) analysis. At any time, at most one additional information
source may be consulted in the search for additional information. In the case
of a reasoning problem we assume that the posterior probability distribution
of a certain hypothesis variable is of interest and that a set of evidence is
available. The task of value of information analysis is to determine the value
of information from diﬀerent information sources; i.e., the value of making
additional observations before accepting the posterior distribution of the hy-
pothesis as the solution to the reasoning problem. On the other hand, in the
case of a decision making problem we assume that we are about to make a
certain decision based on a set of observations on its relevant past. Again
the task of value of information analysis is to consider the value of informa-
tion from diﬀerent information sources; i.e., the value of making additional
observations before making a decision based on the current expected utility
function over the decision options available.

In Section 11.1 we describe value of information analysis in Bayesian net-
works. The value of information analysis in Bayesian networks is based on
an information theoretic approach using concepts such as entropy, mutual in-
formation, and information gain. Entropy and mutual information are intro-
duced as information measures specifying the information gain by observing a
variable. These information measures are easy to compute using probabilistic
inference. In Section 11.2 we describe value of information analysis in inﬂuence

292

11 Value of Information Analysis

diagrams where the change in expected utility is used as the information mea-
sure. In both sections we consider a one-step look-ahead hypothesis driven
approach to value of information analysis where we assume at most a single
information source may be consulted in a quest for additional information.

11.1 VOI Analysis in Bayesian Networks

Consider the situation where a decision maker has to make a decision based
on the probability distribution of a hypothesis variable. It could, for instance,
be a physician deciding on a treatment of a patient given the probability
distribution of a disease variable. For instance, if the probability of the patient
suﬀering from the disease is above a certain threshold, then the patient should
be treated immediately. Prior to deciding on a treatment the physician may
have the option to gather additional information about the patient such as
performing a test or asking a certain question. Given a range of options,
what option should the physician choose next? That is, which of the given
options will (on average) produce the most information? These questions can
be answered by a value of information analysis.

Given a Bayesian network model and a hypothesis variable, the task is to
identify the variable which is most informative with respect to the hypothesis
variable. Hence, we consider a one-step look-ahead hypothesis driven value of
information analysis in Bayesian networks.

11.1.1 Entropy and Mutual Information

The main reason for acquiring additional information is to decrease the uncer-
tainty about the hypothesis under consideration. The selection of the variable
to observe next (e.g., the question to ask next) can be based on the notion
of entropy. Entropy is a measure of how much the probability mass is scat-
tered over the states of a variable (the degree of chaos in the distribution of
the variable), see Cover & Thomas (1991). As such entropy is a measure of
randomness. The more random a variable is, the higher its entropy will be.

Let X be a discrete random variable with n states x1, . . . , xn and proba-

bility distribution P(X), then the entropy of X is deﬁned as

H(X) = −EP(X)[log P(X)]

P(X) log P(X)

(cid:10)

X

= −

≥ 0.

The maximum entropy, log(n), is achieved when the probability distribu-
tion, P(X), is uniform while the minimum entropy, 0, is achieved when all the
probability mass is located on a single state. Thus, H(X) ∈ [0, log(n)].

11.1 VOI Analysis in Bayesian Networks

293

Since entropy can be used as a measure of the uncertainty in the distrib-
ution of a variable, we can determine how the entropy of a variable changes
as observations are made. In particular, we can identify the most informative
observation.

If Y is a random variable, then the entropy of X given an observation on Y is

H(X | Y) = −EP(X,Y)[log P(X | Y)]
(cid:10)

(cid:10)

= −

P(Y)

P(X | Y) log P(X | Y)

Y

X

= H(X) − I(X, Y),

where I(X, Y) is the mutual information (also known as cross entropy) of X
and Y. The conditional entropy H(X | Y) is a measure of the uncertainty of X
given an observation on Y, while the mutual information I(X, Y) is a measure
of the information shared by X and Y (i.e., the reduction in entropy from
observing Y). If X is the variable of interest, then I(X, Y) is a measure of the
value of observing Y. The mutual information is computed as

I(X, Y) = H(X) − H(X | Y)
= H(Y) − H(Y | X)

(cid:10)

(cid:10)

=

P(Y)

Y

X

P(X | Y) log

P(X, Y)
P(X)P(Y)

.

In principle, I(X, Y) is a measure of the distance between P(X)P(Y) and
P(X, Y). The conditional mutual information given a set of evidence ε is com-
puted by conditioning the probability distributions on the available evidence ε:

I(X, Y | ε) =

(cid:10)

Y

P(Y | ε)

(cid:10)

X

P(X | Y, ε) log

P(X, Y | ε)
P(X | ε)P(Y | ε)

.

We compute I(X, Y | ε) for each possible observation Y. The next variable
to observe is the variable Y that has the highest non-zero mutual information
with X (i.e., I(X, Y | ε)), if any.

The probabilities needed for the computation of mutual information are
readily computed by message passing in a junction tree representation of the
model.

11.1.2 Hypothesis Driven Value of Information Analysis

Value of information analysis is the task of estimating the value of additional
information. When considering hypothesis driven value of information analysis
in Bayesian networks, we need to deﬁne a value function in order to determine
the value of an information scenario. Entropy can be used as a value function.

294

11 Value of Information Analysis

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0

0

Entropy for the binary case

H(T )

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Fig. 11.1. The entropy of T .

In a hypothesis driven value of information analysis the value of an in-
formation scenario is deﬁned in terms of the probability distribution of the
hypothesis variable. If T is the hypothesis variable and entropy is used as the
value function, then the value function is deﬁned as

V(T ) = −H(T ) =

(cid:10)

T

P(T ) log(P(T )).

The reason for using the negation of the entropy is best illustrated using an
example. Consider a binary hypothesis variable T with states false and true.
Hence, the distribution of T is fully speciﬁed by a single parameter p; i.e.,
P(T = false, T = true) = (p, 1 − p). Figure 11.1 illustrates the entropy as a
function of p while Figure 11.2 illustrates the negation of the entropy as a
function of p.

As can be seen from Figure 11.1 the entropy takes on its maximum value for
the uniform distribution and its minimum value for the extreme cases (p = 0
and p = 1). Since the value function should take on its maximum value at
the extreme cases and the minimum value in the uniform case, the negation
of the entropy is used as the value function as illustrated in Figure 11.2.
The value of the information scenario after observing a variable X is

V(T | X) = −(H(T ) − I(X, T )).

Thus, one-step look-ahead hypothesis driven value of information analysis
in Bayesian networks amounts to computing the value of the initial informa-
tion scenario V(T ) and the value of information scenarios where a variable X
is observed, i.e., V(T | X). The task is to identify the variable that increases the
value of information the most. The most informative variable to observe is the
variable with the highest mutual information with the hypothesis variable.

0

-0.1

-0.2

-0.3

-0.4

-0.5

-0.6

-0.7

0

11.1 VOI Analysis in Bayesian Networks

295

Negative entropy for the binary case

−H(T )

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Fig. 11.2. The negation of the entropy of T .

Example 11.1. As an example we consider a one-step look-ahead hypothesis
driven value of information analysis on the Asia example shown in Figure 11.3.
The hypothesis variable is Bronchitis (B) and the initial set of evidence is
ε = ∅. That is, we are considering whether or not the patient is suﬀering from
bronchitis.

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 11.3. A graph specifying the independence and dependence relations of the
Asia example.

Given the network of Figure 11.3, the hypothesis variable Bronchitis, and
the initial set of evidence ε = {εD} = {D = yes}, we want to determine the most
valuable observation. We may compute the value of the initial information
scenario as

296

11 Value of Information Analysis

V(Bronchitis) = −H(Bronchitis)
= −

(cid:10)

P(Bronchitis = x) log P(Bronchitis = x)

x∈{no,yes}

= −0.69,

where

P(Bronchitis = yes) = 1 − P(Bronchitis = no)

= 0.45;

i.e., P(Bronchitis) = (yes, no) = (0.55, 0.45).

To identify the most informative observation, we compute the mutual in-
formation between the hypothesis variable and each of the other variables in
the model. Table 11.1 speciﬁes the mutual information between Bronchitis and
each of the other (unobserved) variables.

Variable name (X)

I(Bronchitis, X)

Dyspnoea
Smoker
X ray
Asia

0.25
0.05
0.0008
0

Table 11.1. Mutual information between Bronchitis and other variables given no
observations.

Notice that one of the variables has a mutual information measure of value
zero. A mutual information measure of zero speciﬁes that the two variables
are independent (this can be easily veriﬁed applying d-separation).

From Table 11.1 it is clear the most informative variable is Dyspnoea.
Thus, we choose to observe this variable. Assume we observe the patient to
suﬀer from dyspnoea; i.e., Dyspnoea = yes. The value of the new information
scenario can be computed as described above

V(Bronchitis | Dyspnoea = yes) = −H(Bronchitis | Dyspnoea = yes)

= −0.45,

where P(Bronchitis | Dyspnoea = yes) = (yes, no) = (0.834, 0.166).

Once the Dyspnoea variable has been observed to be in state yes we may
be satisﬁed with the certainty in the hypothesis or we may search for the next
observation to make.

Table 11.2 shows the mutual information between Bronchitis and each
of the remaining unobserved variables when Dyspnoea is observed to be in
state yes. The variable with the highest mutual information score is X ray.

11.2 VOI Analysis in Inﬂuence Diagrams

297

Variable name (X)

I(Bronchitis, X)

X ray
Smoker
Asia

0.014
0.0129
0.0002

Table 11.2. Mutual
given Dyspnoea = yes.

information between Bronchitis and other variables

If the variable with the highest mutual information score is unobservable,
then we proceed to the variable with the second highest score. Notice that the
mutual information scores change as observations are made. Often both the
score and the order of the variables will change with observations.

Variables with a score of zero should not be observed as they will not add
any information to the analysis. Notice that additional information cannot
decrease the value of an information scenario.

11.2 VOI Analysis in Inﬂuence Diagrams

The value of information is a core element of decision analysis. We perform
decision analysis using inﬂuence diagram representations of decision problems.
The structure of an inﬂuence diagram N = (X, G, P, U) speciﬁes a partial order
on observations relative to the order of decisions

I0 ≺ D1 ≺ I1 ≺ · · · ≺ Dn ≺ In.

Value of information analysis in inﬂuence diagrams considers the impact of
changing the partial order of observations relative to decisions.

Assume Dj is the next decision to be made and let ε be the set of obser-
vations and decisions made up to decision Dj. Initially, the basis for making
decision Dj is the expected utility function EU(Dj | ε) over the options encoded
by Dj.

Let Xi ∈ Ik where k ≥ j such that Xj (cid:7)∈ F(Dj) be a discrete random vari-
able with n states x1, . . . , xn; i.e., Xi is a variable observed after Dj or never
observed such that Xi is not a descendant of Dj. Assume Xi = x is observed
prior to making decision Dj. The revised basis for making decision Dj is the
expected utility function EU(Dj | ε, x). Prior to observing the state of Xi the
probability distribution of Xi is P(Xi | ε). Thus, we can compute the expected
utility of the optimal decision at Dj after Xi is observed EUO(Xi, Dj | ε) to be

EUO(Xi, Dj | ε) =

(cid:10)

Xi

P(Xi | ε) max
Dj

EU(Dj | ε, Xi).

This value should be compared with the expected utility maxDj EU(Dj | ε)
of the optimal decision at Dj without the observation on Xi. The value
VOI(Xi, Dj | ε) of observing Xi before decision Dj is

298

11 Value of Information Analysis

VOI(Xi, Dj | ε) = EUO(Xi, Dj | ε) − max
Dj

EU(Dj | ε).

Example 11.2 (Appendicitis). Appendicitis may cause fever, pain, or both. If
a patient has appendicitis, then the patient will have an increased count of
white blood cells in addition to fever and pain. Assume that fever and pain
are observed.

When a patient potentially has appendicitis, the physician may choose
to operate right away or wait for the result of a blood test. The question
considered is whether or not the result of the blood test provides suﬃcient
value.

Figure 11.4 shows a graphical representation of the decision problem where
we assume fever and pain are observed while the blood test result is not (yet)
observed.

Appendicitis

White Blood Cells

Pain

Fever

U

Operate

Fig. 11.4. A graph representing the Appendicitis example.

To compute the value of information on White Blood Cells the model has
to be quantiﬁed. Let P(Appendicitis = no, Appendicitis = yes) = (0.85, 0.15)
and the remaining conditional probability distributions be given as speciﬁed
in Table 11.3–Table 11.5. Table 11.6 shows the utility function U(Appendicitis,
Operate).

Appendicitis = no Appendicitis = yes

Fever = no
Fever = yes

0.5
0.5

0.02
0.98

Table 11.3. The conditional probability distribution P(Fever | Appendicitis).

11.2 VOI Analysis in Inﬂuence Diagrams

299

Appendicitis = no Appendicitis = yes

Pain = no
Pain = yes

0.4
0.6

0.05
0.95

Table 11.4. The conditional probability distribution P(Pain | Appendicitis).

Appendicitis = no Appendicitis = yes

White Blood Cells = no
White Blood Cells = yes

0.95
0.05

0.01
0.99

Table 11.5. The
Appendicitis).

conditional probability distribution P(White Blood Cells |

Appendicitis Operate

no
no
yes
yes

now
wait
now
wait

5
−5
−10
10

Table 11.6. The utility function U(Appendicitis, Operate).

Assume that the physician observes the patient to suﬀer from pain and
fever; i.e., ε = {Fever = yes, Pain = yes}. With the above quantiﬁcation we
compute the expected utility function over Operate to be EU(Operate | Fever =
yes, Pain = yes) = (0.31, −0.31). We compute the expected utility of the opti-
mal decision at Operate after White Blood Cells is observed to be

EUO(White Blood Cells, Operate | ε)

(cid:10)

=

P(White Blood Cells | ε)

White Blood Cells
max
Operate
= 6.375.

EU(Operate | ε, White Blood Cells)

The value of observing White Blood Cells before decision Operate is

VOI(White Blood Cells, Operate | ε)

= EUO(White Blood Cells, Operate | ε) − max
Operate

EU(Operate | ε)

= 6.375 − 0.31 = 6.065.

Thus, the physician should wait for the result of the blood test.

Instead of considering which observation to make next, if any, at a deci-
sion in the middle of the decision process, we may consider how the maxi-
mum expected utility of the optimal strategy ^∆ changes as the partial order

300

11 Value of Information Analysis

of observations is altered. Let MEU( ^∆) be the maximum expected utility of
the original formulation of the decision problem N and let MEU( ^∆∗) be the
maximum expected utility of the revised formulation of the decision prob-
lem N∗ where a variable X ∈ Ij in N and X ∈ Ik in N∗ such that j > k
and X (cid:7)∈ F(Dk−1). The value of observing X before decision k − 1 instead of
before decision j − 1 is MEU( ^∆∗) − MEU( ^∆).

Example 11.3. Reconsidering the decision problem in Example 11.2, we com-
pute the maximum expected utility MEU( ^∆) of the optimal strategy ^∆ for the
information scenario where White Blood Cells is not observed before making
any observation to be (where we use the ﬁrst letter of each variable name to
shorten the presentation)
(cid:10)

(cid:10)

(cid:10)

(cid:10)

P(A)P(F | A)P(P | A)P(W | A)U(O, A)

MEU( ^∆) =

max
O

W

A

P

F

= 2.99.

Similarly, we compute the maximum expected utility MEU∗( ^∆∗) of the opti-
mal strategy ^∆∗ for the information scenario where White Blood Cells is ob-
served to be

MEU∗( ^∆∗) =

(cid:10)

(cid:10)

(cid:10)

(cid:10)

max
O

A

W

P

F

= 5.45.

P(A)P(F | A)P(P | A)P(W | A)U(O, A)

Based on the above analysis the physician should wait for the result of the

blood test. The value of observing White Blood Cells prior to the decision is

VOI(White Blood Cells, Operate | ε) = MEU∗( ^∆∗) − MEU( ^∆)

= 5.45 − 2.99
= 2.46,

where ε is the set of observations on Fever and Pain.

11.3 Summary

In this chapter we have considered value of information analysis in Bayesian
networks and inﬂuence diagrams in two separate sections. In both cases we
have described a one-step look-ahead approach to value of information analy-
sis. That is, value of information analysis performed under the assumption
that we may at most consult one additional information source in the search
for further information before accepting the posterior distribution of the hy-
pothesis variable or making the decision.

In order to perform value of information analysis in Bayesian networks
we have deﬁned entropy and mutual information as information measures.

Exercises

301

Entropy is a measure of how much the probability mass is scattered over the
states of the hypothesis variable. In the evaluation of possible information
sources we identify the possible observation that reduces the entropy of the
hypothesis variable the most. This will be the variable with the highest mutual
information with the hypothesis variable.

In the case of value of information analysis in inﬂuence diagrams expected
utility is used as the information measure. In the evaluation of possible infor-
mation sources we identify the possible observation that increases the expected
utility of the decision the most. This variable is identiﬁed by computing the
maximum expected utility of the decision given that the variable is observed
prior to the decision. This maximum expected utility is computed for each
possible observation and compared with the maximum expected utility of the
decision given no additional information.

Exercises

Exercise 11.1. Consider the Asia network shown in Figure 11.5 (see Exam-
ple 4.2 on page 68 for more details).

Asia

Smoker

Tuberculosis

Cancer

Bronchitis

Tub or cancer

X ray

Dyspnoea

Fig. 11.5. A graph specifying the independence and dependence relations of the
Asia example.

The Asia network consists of the three hypothesis variables Bronchitis,
Cancer, and Tuberculosis. The risk factors are Smoking and a recent visit to Asia
while the symptoms of the network are X ray and Dyspnoea. The risk factors
and symptoms are the possible observations a physician can make on a patient.

(a) What is the entropy of the prior distribution on each of the diseases?
(b) What is the most informative observation with respect to each of the

diseases?

(c) What is the most informative observation with respect to each of the

diseases if the patient is a smoker suﬀering from dyspnoea?

302

11 Value of Information Analysis

Exercise 11.2. A used car salesman oﬀers all potential customers a test per-
formed on the car they are interested in buying. The test should reveal whether
the car has either no defects or one (or more) defects; the prior probability
that a car has one or more defects is 0.3. There are two possible tests: Test1
has three possible outcomes, namely no-defects, defects and inconclusive. If
the car does not have any defects, then the probabilities for these test results
are 0.8, 0.05 and 0.15, respectively. On the other hand, if the car has defects,
then the probabilities for the test results are 0.05, 0.75 and 0.2. For Test2
there are only two possible outcomes (no-defects and defects). If the car does
not have any defects, then the probabilities for the test results are 0.8 and 0.2,
respectively, and if the car has defects then the probabilities are 0.25 and 0.75.

(a) Construct a Bayesian network (both structure and probabilities) repre-
senting the relations between the two tests and the state of the car.

(b) Calculate the probabilities P(StateOfCar | Test1) and P(Test1).
(c) Perform a value of information analysis on both Test1 and Test2 with

respect to StateOfCar.

Exercise 11.3. Assume we are given the inﬂuence diagram in Figure 11.6.

D1

A

T

D2

U1

B

C

U2

Fig. 11.6. An inﬂuence diagram with two decisions.

P(A | D1) d11

a1
a2

0.3
0.7

d12

0.6
0.4

P(B | A)

b1
b2

a1

0.1
0.9

a2

0.8
0.2

P(T | A, B)

b1
b2

a1
(0, 1)
(0.6, 0.4)

a2
(0.2, 0.8)
(0.8, 0.2)

P(C | B, D2)

d21
d22

b1
(0.9, 0.1)
(0.5, 0.5)

b2
(0.5, 0.5)
(0.9, 0.1)

U1(A, D2) a1

a2

d11
d12

10
0
0 −6

U2(C) = (20, 0)

(a) Compute the solution to this decision problem (i.e., compute the strategy

maximizing the expected utility).

Exercises

303

(b) Describe the impact of the information on variable T .
(c) Repeat parts (a) and (b) when P(A | D1 = d12) = (0.4, 0.6) and U2(C) =

(20, 100).

(d) Assume the informational link between T and D2 is not present in the
inﬂuence diagram. Compute VOI(T ) when D1 = d12 for both quantiﬁca-
tions.

Exercise 11.4. Assume that Frank wakes up one morning feeling ill. Frank
thinks that he may have caught the ﬂu, and he now has to decide whether to
go to the pharmacy to buy some medicine (at the cost of e 150). If Frank has
the ﬂu, then the medicine will relieve his discomfort during the sickness period;
if he does not have the ﬂu then the medicine will have no eﬀect. Assuming
that Frank does not suﬀer from the discomfort caused by a ﬂu, then he can
take some additional overtime work which will be worth e 2000.

Before Frank decides to go to the pharmacy, he can try to get more infor-
mation by buying a thermometer (at a cost of e 10.) and test whether he has
a fever; the thermometer is very precise and will indicate a fever if and only
if Frank actually has a fever.

(a) Perform a myopic value of information analysis for the decision problem
above and calculate the expected proﬁt of performing the test (i.e., buying
the thermometer at a cost of e 10 and taking the temperature). Calculate
the required probabilities from the joint probability table (over the vari-
ables Flu and Fever) speciﬁed in Table 11.7.

Flu

no

yes

Fever

no
yes

0.89298
0.09702

0.00095
0.00905

Table 11.7. The joint probability distribution P(Fever, Flu).

References

Andersen, S. K., Olesen, K. G., Jensen, F. V. & Jensen, F. (1989). HUGIN — a
Shell for Building Bayesian Belief Universes for Expert Systems, Proceed-
ings of the Eleventh International Joint Conference on Artiﬁcial Intelligence,
pp. 1080–1085.

Bender, E. A. (1996). Mathematical Methods in Artiﬁcial Intelligence, IEEE Com-

puter Society Press.

Boyen, X. & Koller, D. (1998). Tractable inference for complex stochastic processes,
Proceedings of the Fourteenth Conference on Uncertainty in Artiﬁcial Intelli-
gence, pp. 33–42.

Castillo, E., Guti´errez, J. M. & Hadi, A. S. (1997). Sensitivity analysis in discrete
Bayesian Networks, IEEE Transactions on Systems, Man and Cybernetics, Part
A, pp. 412–423.

Chickering, D. M. (1996). Learning Bayesian networks is NP-complete, Learning

from Data: Artiﬁcial Intelligence and Statistics V, pp. 121–130.

Cobb, B. R. & Shenoy, P. P. (2004). Hybrid inﬂuence diagrams using mixtures of
truncated exponentials, Proceedings of the Twentieth Conference on Uncertainty
in Artiﬁcial Intelligence, AUAI Press, Arlington, VA, pp. 85–93.

Cooper, G. F. (1990). The computational complexity of probabilistic inference using

Bayesian belief networks, Artiﬁcial Intelligence 42(2–3): 393–405.

Coup´e, V. M. & van der Gaag, L. C. (1998). Practicable sensitivity analysis of
Bayesian belief networks, Prague Stochastics ’98 – Proceedings of the Joint Ses-
sion of the 6th Prague Symposium of Asymptotic Statistics and the 13th Prague
Conference on Information Theory, Statistical Decision Functions and Random
Processes, pp. 81–86.

Cover, T. M. & Thomas, J. A. (1991). Elements of Information Theory, John Wiley

& Sons.

Cowell, R. G., Dawid, A. P., Lauritzen, S. L. & Spiegelhalter, D. J. (1999). Proba-

bilistic Networks and Expert Systems, Springer-Verlag.

Dagum, P. & Luby, M. (1993). Approximating probabilistic inference in Bayesian

belief netwoks is NP-hard, Artiﬁcial Intelligence 60: 141–153.

Dawid, A. P. (1992). Applications of a general propagation algorithm for probabilis-

tic expert systems, Statistics and Computing 2: 25–36.

DeGroot, M. (1986). Probability and Statistics, second edn, Addison-Wesley. Reprint

with corrections, 1989.

306

References

Dempster, A. P. (1968). A generalization of Bayesian inference, Journal of the Royal

Statistical Society, Series B 30: 205–247.

Diez, F. J. (1993). Parameter adjustment in Bayes networks, The generalized noisy
OR-gate, Proceedings of the Ninth Conference on Uncertainty in Artiﬁcial In-
telligence, pp. 99–105.

Duda, R. O. & Hart, P. E. (1973). Pattern Classiﬁcation and Scene Analysis, New

York: John Wiley & Sons.

Friedman, N., Geiger, D. & Goldszmidt, M. (1997). Bayesian Network classiﬁers,

Machine Learning, pp. 1–37.

Frydenberg, M. (1989). The chain graph Markov property, Scandinavian Journal of

Statistics 17: 333–353.

Geiger, D., Verma, T. & Pearl, J. (1990).

Identifying independence in Bayesian

networks, Networks 20(5): 507–534. Special Issue on Inﬂuence Diagrams.
Heckerman, D. (1986). Probabilistic interpretations for MYCIN’s certainty factors,
Uncertainty in Artiﬁcial Intelligence, Elsevier Science Publishers B. V. (North-
Holland), Amsterdam, pp. 298–312.

Heckerman, D. (1993). Causal Independence for Knowledge Acquisition and Infer-
ence, Proceedings of the Ninth Conference on Uncertainty in Artiﬁcial Intelli-
gence, pp. 122–127.

Heckerman, D. & Breese, J. S. (1994). A New Look at Causal Independence,
Proceedings of the Tenth Conference on Uncertainty in Artiﬁcial Intelligence,
pp. 286–292.

Howard, R. A. & Matheson, J. E. (1981). Inﬂuence diagrams, Readings in Decision
Analysis, Strategic Decisions Group, Menlo Park, CA, chapter 38, pp. 763–771.
Hugin (2006). Hugin GUI Help, Hugin Expert A/S, www.hugin.com. Reference

Manual for the Hugin Graphical User Interface.

Jensen, F., Jensen, F. V. & Dittmer, S. (1994). From inﬂuence diagrams to junction
trees, Proceedings of the Tenth Conference on Uncertainty in Artiﬁcial Intelli-
gence, Morgan Kaufmann Publishers, San Francisco, pp. 367–373.

Jensen, F. V. (1996). An Introduction to Bayesian Networks, UCL Press, London.
Jensen, F. V. (2001). Bayesian Networks and Decision Graphs, Springer-Verlag.
Jensen, F. V. & Jensen, F. (1994). Optimal Junction Trees, Proceedings of the Tenth

Conference on Uncertainty in Artiﬁcial Intelligence, pp. 360–366.

Jensen, F. V., Lauritzen, S. L. & Olesen, K. G. (1990). Bayesian updating in causal
probabilistic networks by local computations, Computational Statistics Quar-
terly 4: 269–282.

Kenley, C. R. (1986). Inﬂuence Diagram Models with Continuous Variables, PhD
thesis, Department of Engineering-Economic Systems, Stanford University, CA.
Kim, J. H. & Pearl, J. (1983). A computational model for causal and diagnostic
reasoning in inference systems, Proceedings of the Eighth International Joint
Conference on Artiﬁcial Intelligence, pp. 190–193.

Kim, Y.-G. & Valtorta, M. (1995). On the Detection of Conﬂicts in Diagnostic
Bayesian Networks Using Abstraction, Proceedings of the Eleventh Conference
on Uncertainty in Artiﬁcial Intelligence, pp. 362–367.

Kjærulﬀ, U. B. (1995). dHugin: a computational system for dynamic time-sliced

Bayesian networks, International Journal of Forecasting 11: 89–111.

Koller, D. & Pfeﬀer, A. (1997). Object-oriented Bayesian networks, Proceedings of
the Thirteenth Conference on Uncertainty in Artiﬁcial Intelligence, pp. 302–313.

References

307

Langley, P., Iba, W. & Thompson, K. (1992). An analysis of Bayesian classi-
ﬁers, Proceedings of the Eleventh National Conference on Artiﬁcial Intelligence,
pp. 223–228.

Laskey, K. B. (1991). Conﬂict or surprise: Heuristics for model revision, Proceedings
of the Seventh Conference on Uncertainty in Artiﬁcial Intelligence, pp. 197–204.
Laskey, K. B. (1993). Sensitivity Analysis for Probability Assessments in Bayesian
Networks, Proceedings of the Ninth Conference on Uncertainty in Artiﬁcial In-
telligence, pp. 136–142.

Laskey, K. B. & Mahoney, S. M. (1997). Network fragments: Representing knowledge
for constructing probabilistic models, Proceedings of the Thirteenth Conference
on Uncertainty in Artiﬁcial Intelligence, pp. 334–341.

Lauritzen, S. L. (1992a). Credit Valuation Using HUGIN. Personal communication.
Lauritzen, S. L. (1992b). Propagation of probabilities, means and variances in mixed
graphical association models, Journal of the American Statistical Association
87(420): 1098–1108.

Lauritzen, S. L. (1995). The EM algorithm for graphical association models with

missing data, Computational Statistics & Analysis 19: 191–201.

Lauritzen, S. L. (1996). Graphical models, Oxford Statistical Science Series, Claren-

don Press, Oxford, England.

Lauritzen, S. L., Dawid, A. P., Larsen, B. N. & Leimer, H.-G. (1990a). Independence
properties of directed Markov ﬁelds, Networks 20(5): 491–505. Special Issue on
Inﬂuence Diagrams.

Lauritzen, S. L., Dawid, A. P., Larsen, B. N. & Leimer, H. G. (1990b). Independence

properties of directed Markov ﬁelds, Networks 20(5): 491–505.

Lauritzen, S. L. & Jensen, F. (2001). Stable Local Computation with Mixed

Gaussian Distributions, Statistics and Computing 11(2): 191–203.

Lauritzen, S. L. & Nilsson, D. (2001). Representing and solving decision problems

with limited information, Management Science 47: 1238–1251.

Lauritzen, S. L. & Spiegelhalter, D. J. (1988). Local computations with probabilities
on graphical structures and their application to expert systems, Journal of the
Royal Statistical Society, Series B 50(2): 157–224.

Lin, Y. & Druzdzel, M. J. (1997). Computational advantages of relevance reason-
ing in Bayesian networks, Proceedings of the Thirteenth Conference on Uncer-
tainty in Artiﬁcial Intelligence, Morgan Kaufmann Publishers, San Francisco,
pp. 342–350.

Madsen, A. & Jensen, F. (2005). Solving linear-quadratic conditional Gaussian inﬂu-
ence diagrams, International Journal of Approximate Reasoning 38(3): 263–282.
Madsen, A. L. (2005). A Diﬀerential Semantics of Lazy Propagation, Proceedings of
the 21st Conference on Uncertainty in Artiﬁcial Intelligence, pp. 364–371.
Madsen, A. L., Jensen, F., Kjærulﬀ, U. & Lang, M. (2005). The HUGIN tool for
probabilistic graphical models, International Journal of Artiﬁcial Intelligence
Tools 14(3): 507–543.

Madsen, A. L. & Jensen, F. V. (1999). Lazy propagation: A junction tree inference

algorithm based on lazy evaluation, Artiﬁcial Intelligence 113(1–2): 203–245.

Madsen, A. L., Nielsen, L. M. & Jensen, F. V. (1998). Probsy – a system for the
calculation of probabilities in the card game bridge, Proceedings of the Eleventh
International Florida Artiﬁcial Intelligence Research Symposium Conference,
pp. 435–439.

308

References

Madsen, A. L. & Nilsson, D. (2001). Solving Inﬂuence Diagrams using HUGIN,
Shafer–Shenoy and Lazy Propagation, Proceedings of the Seventeenth Confer-
ence on Uncertainty in Artiﬁcial Intelligence, pp. 337–345.

Meek, C. (1995). Causal inference and causal explanation with background knowl-
edge, Proceedings of the Eleventh Conference on Uncertainty in Artiﬁcial Intel-
ligence, pp. 403–410.

Neil, M., Fenton, N. & Nielsen, L. M. (2000). Building Large-Scale Bayesian Net-

works, The Knowledge Engineering Review 15(3): 257–284.

Nielsen, T. D. (2001). Decomposition of Inﬂuence Diagrams, Proceedings of the Sixth
European Conference on Symbolic and Quantitative Approaches to Reasoning
and Uncertainty, pp. 144–155.

Nielsen, T. D. & Jensen, F. V. (1999). Welldeﬁned decision scenarios, Proceedings of
the Fifteenth Conference on Uncertainty in Artiﬁcial Intelligence, pp. 502–511.
Olesen, K. G., Kjærulﬀ, U., Jensen, F., Jensen, F. V., Falck, B., Andreassen, S. &
Andersen, S. K. (1989). A MUNIN network for the median nerve – a case study
on loops, Applied Artiﬁcial Intelligence 3. Special issue: Towards Causal AI
Models in Practice.

Olmsted, S. (1983). On representing and solving decision problems, PhD thesis,
Department of Engineering-Economic Systems, Stanford University, Stanford,
CA.

Pearl, J. (1988). Probabilistic Reasoning in Intelligent Systems: Networks of Plausi-
ble Inference, Series in Representation and Reasoning, Morgan Kaufmann Pub-
lishers, San Mateo, CA.

Pearl, J. (2000). Causality: models, reasoning, and inference, Cambridge University

Press.

Poland, W. B. (1994). Decision Analysis with Continuous and Discrete Variables:
A Mixture Distribution Approach, PhD thesis, Engineering-Economic Systems,
Stanford University, Stanford, CA.

Pradhan, M., Provan, G., Middleton, B. & Henrion, M. (1994). Optimal Knowledge
Engineering for Large Belief Networks, Proceedings of the Tenth Conference on
Uncertainty in Artiﬁcial Intelligence, pp. 484–490.

Raiﬀa, H. (1968). Decision Analysis, Addison-Wesley, Reading, MA.
Renooij, S. (2001). Probability elicitation for belief networks: issues to consider, The

Knowledge Engineering Review 16(3): 255–269.

Robinson, R. W. (1977). Counting unlabelled acyclic digraphs, Lecture Notes in

Mathematics: Combinatorial Mathematics V, Springer-Verlag.

Shachter, R. (1998). Bayes–Ball: The Rational Pasttime (for Determining Irrele-
vance and Requisite Information in Belief Networks and Inﬂuence Diagrams),
Proceedings of the Fourteenth Conference on Uncertainty in Artiﬁcial Intelli-
gence, pp. 480–487.

Shachter, R. D. (1986).
34(6): 871–882.

Evaluating inﬂuence diagrams, Operations Research

Shachter, R. D. (1990). Evidence absorption and propagation through arc reversals,
Uncertainty in Artiﬁcial Intelligence, Elsevier Science Publishers B. V. (North-
Holland), Amsterdam, pp. 173–190.

Shachter, R. D. & Kenley, C. R. (1989). Gaussian inﬂuence diagrams, Management

Science 35(5): 527–549.

Shachter, R. D. & Peot, M. A. (1992). Decision making using probabilistic infer-
ence methods, Proceedings of the Eighth Conference on Uncertainty in Artiﬁcial
Intelligence, Morgan Kaufmann Publishers, San Mateo, CA, pp. 276–283.

References

309

Shafer, G. (1976). A Mathematical Theory of Evidence, Princeton University Press.
Inference in Hybrid Bayesian Networks Using Mixtures of
Shenoy, P. P. (2006).
Gaussians, Proceedings of the 22nd Conference on Uncertainty in Artiﬁcial In-
telligence, pp. 428–436.

Shortliﬀe, E. H. & Buchanan, B. G. (1975). A model of inexact reasoning in medicine,

Mathematical Biosciences 23: 351–379.

Spiegelhalter, D. & Lauritzen, S. L. (1990). Sequential updating of conditional

probabilities on directed graphical structures, Networks 20: 579–605.

Spirtes, P. & Glymour, C. (1991). An algorithm for fast recovery of sparse causal

graphs, Social Science Computing Review 9(1): 62–72.

Spirtes, P., Glymour, C. & Scheines, R. (2000). Causation, Prediction, and
Search, Adaptive Computation and Machine Learning, second edn, MIT Press,
Cambridge, MA.

Srinivas, S. (1993). A Generalization of the Noisy-Or Model, Proceedings of the
Ninth Conference on Uncertainty in Artiﬁcial Intelligence, Morgan Kaufmann
Publishers, pp. 208–218.

Steck, H. & Tresp, V. (1999). Bayesian belief networks for data mining, Proceedings
of the Second Workshop “Data Mining und Data Warehousing als Grundlage
moderner enscheidungsunterstuetzender Systeme”.

Suermondt, H. J. (1992). Explanation in Bayesian Belief Networks, PhD thesis,
Department of Computer Science and Medicine, Stanford University, Stanford,
CA.

Titterington, D. M., Smith, A. F. M. & Makov, U. E. (1995). Statistical Analysis of

Finite Mixture Distributions, John Wiley & Sons, New York.

Tversky, A. & Kahneman, D. (1981). The framing of decisions and the psychology

of choice, Science 211.

Verma, T. & Pearl, J. (1992). An Algorithm for Deciding if a Set of Observed
Independencies Has a Causal Explanation, Proceedings of the Eighth Conference
on Uncertainty in Artiﬁcial Intelligence, pp. 323–330.

Vomlelov´a, M. & Jensen, F. (2002). An Extension of Lazy Evaluation for Inﬂu-
ence Diagrams Avoiding Redundant Variables in the Potentials, First European
Workshop on Probabilistic Graphical Models, pp. 186–193.

Wang, H., Rish, I. & Ma, S. (2002). Using sensitivity analysis for selective parameter

update in Bayesian network learning, AAAI Symposium Series.

Wermuth, N. & Lauritzen, S. L. (1983). Graphical and recursive models for contin-

gency tables, Biometrika 70: 537–552.

Wermuth, N. & Lauritzen, S. L. (1990). On substantive research hypotheses, con-
ditional independence graphs and graphical chain models, Journal of the Royal
Statistical Society, Series B 52(1): 21–50.

Zadeh, L. A. (1965). Fuzzy sets, Information and Control 8: 338–353.
Zadeh, L. A. & Kacprzyk, J. (eds) (1992). Fuzzy Logic for the Management of

Uncertainty, John Wiley and Sons, New York.

Zhang, N. L. (2004). Hierarchical laten class models for cluster analysis, Journal of

Machine Learning Research 5: 697–723.

List of Symbols

(cid:1)=
Deﬁned as
≡ Equivalent to
:= Assignment
∝ Proportional to

(cid:15) · (cid:15) Domain size (i.e., (cid:15)X(cid:15) = |dom(X)|)

Independent with respect to distribution p

⊥⊥ Independent
⊥⊥p
(cid:7)⊥⊥ Dependent
(cid:7)⊥⊥p Dependent with respect to distribution p

d-separated in graph G

d-connected in graph G
Separator set
Evidence function (potential)
Evidence
Evidence function for X(ε)

⊥ d-separated
⊥G
(cid:7)⊥ d-connected
(cid:7)⊥G
S
E
ε
Eε
η Normalization operator
∼ Connected
→ Connected by directed edge
← Connected by directed edge

Connected by undirected edge

G
∼ Connected in graph G
G→ Connected by directed edge in graph G

G

Connected by undirected edge in graph G

(cid:7)∼ Not connected
G
(cid:7)∼ Not connected in graph G

(cid:4)u, . . . , v(cid:5)

Path from u to v

dom Domain (of variable or set of variables)

312

LIST OF SYMBOLS

“given” (e.g., “a | b” means “a given b”)
Parents of
Family of

|
pa
fa
ch Children of
an Ancestors of
An Ancestral set of
de Descendants of
nd Non-descendants of

true
false
I

Boolean value “true”
Boolean value “false”
Past

EU Expected utility

MEU Maximum expected utility

k-dimensional Normal distribution

N Normal (Gaussian) distribution
Nk
L Law of (e.g., L(X) = N(µ, σ2), also denoted X ∼ N(µ, σ2))
R The set of all real numbers
S
I
H Private (hidden) variables
O Output variables
P
X(ε)

Public variables (input + output)
Evidence variables (i.e., subset of X for which their values are
known)

Scope
Input variables

Index

EUO, 297
(cid:6)
(cid:6)
-max-

-rule, see inﬂuence diagram

∼ , 19
|| · ||, 21
→ , see edge, directed
G→ , see edge, directed
G , see edge, undirected
, see edge, undirected

abductive reasoning, see reasoning,

abductive

acyclic directed graph, see graph,

acyclic directed

AIC, see Akaike’s Information Criterion
Akaike’s Information Criterion, 249
almost equal, 280
ambiguous region, 242
An, see ancestral set
an, see ancestor
ancestor, 19
ancestral set, 20
Appendicitis, 298, 300
Apple Jack, 66, 80
arc, see edge
arc reversal, 52, 111
Asia, 68, 261, 267, 274, 295
auxiliary variable, 199, 218
axioms, see probability axioms

barren variable, see variable, barren
Bayes’ factor, 53, 278
Bayes’ rule, 50

interpretation of, 51

Bayesian Information Criterion, 249
Bayesian likelihood ratio, 278
Bayesian network

conditional LG, 72, 70–75
direct inference approach, 111
discrete, 65, 65–70
indirect inference approach, 121
query, 110
query based inference, 110

belief theory, 4
BIC, see Bayesian Information Criterion
Burglary or Earthquake, 25

case

complete, 246

category, see variable, category
causal network, 25–31

converging connection in, 29–30
diverging connection in, 28–29
ﬂow of information in, 25–31
serial connection in, 26–27
types of connections in, 26

causal reasoning, see reasoning, causal
causality, 6, 24–25, 66

modeling, 30

causally independent, 205
cause variables, 178, 182, 205
causes, 205
certainty factor, 7
ch, see child
chain graph, see graph, chain
chain rule, 8, 58

314

Index

Bayesian networks, 59, 65
CLG Bayesian networks, 72
CLQG inﬂuence diagrams, 86
inﬂuence diagrams, 76
object-oriented Bayesian network

models, 96
Chest Clinic, see Asia
junction tree, 117

child, 19
chord, 117
CLG Bayesian network, see Bayesian

network, conditional LG

CLG distribution, see conditional linear

Gaussian distribution

clique, 114
CLQG inﬂuence diagram, see inﬂuence
diagram, conditional LQG, 86

collider, 231
combination, see probability potential,

combination

conditional independence, see indepen-

dence

conditional linear Gaussian distribution,

71

conditional linear-quadratic Gaussian
inﬂuence diagram, see inﬂuence
diagram, conditional LQG
conditional probability, see probability,

conditional
conﬂict analysis, 261
local conﬂict, 265
partial conﬂict, 265
rare case, 265

conﬂict measure, 262
constraint variable, 149, 189
contribution variable, 206
converging connection, see causal

network, converging connection in

cost of omission, 267, 275

threshold, 268

cycle, 20

directed, 20

D-map, 56
d-separation, 32, 59
DAG, see graph, acyclic directed
DAG faithfulness assumption, 230
de, see descendant
decision

full control, 223
decision future, 79
decision history, 78
decision past, 79
decision problem
well-deﬁned, 80
decision variable, 74

informational parents, 84

decision variables

partial order, 78
total order, 80

deductive reasoning, see reasoning,

deductive

default inhibitor, 206, 207
default prior probability distribution,

94

degrees of freedom, 232
descendant, 19
dHugin, 101
diagnostic reasoning, see reasoning,

diagnostic

directed acyclic graph, see graph,

acyclic directed

directed cycle, see cycle, directed
directed global Markov criterion, 32, 34
directed global Markov property, 59
directed graph, see graph, directed
dissemination of experience, 252
distance measure, 274
distinguished state, 209
distributive law, see probability
calculus, distributive law of
diverging connection, see causal

network, diverging connection in

division, see probability potential,

division
by zero, 46, 50

dom, see variable, domain
dynamic Bayesian network, 100

edge, 18

derived direction, 237
directed, 18
undirected, 19

eﬀect variable, 178, 182, 205
elicitation of numbers, see parameters,

elicitation of

elicitation of structure, see structure,

gamble-based approach, see parameter,

Index

315

elicitation of
elimination order, 115
strong, 123, 125

EM algorithm

penalized, 249

entropy, 292

conditional, 293
conditional mutual information, 293
cross, 293
mutual information, 293

equivalence class, 230
equivalent sample size, 252
equivalent variables, see variable,

equivalence

event, 38
evidence, 23

cost of omission, 267
hard, 23
impact, 267
likelihood, see evidence, soft
potential, 45
soft, 23
suﬃcient, 280
expected utility, 75
experience count, 250, 252
experience table, 250
expert system, 3, 107

normative, 5

explaining away, 7, 18, 30
expressions, see parameter, elicitation

of

factorization

recursive, see probability distribution,

recursive factorization of

faithfulness assumption, 228
ﬁltering, 99
ﬁnding

important, 280
irrelevant, 280
redundant, 280

ﬂat network, 96
functional uncertainty, 186
fundamental rule, 39, 50
fuzzy logic, 5

elicitation of

generalized marginalization operator,

127

global conﬂict, 265
graph

acyclic directed, 20
chain, 17
condition, 243
connected, 20
directed, 19
equivalence class, 231
instances, 92
moral, 20
moralization, 114
skeleton, 20, 231, 236
strongly connected component, 243
undirected, 19

head, 114
head-to-head, 19
Hugin algorithm, 119
hypothesis variables, 68

I-map, 56
IC algorithm, 235
idioms, 154
independence, 54

completeness of DAG, 56
conditional, 55
correctness of DAG, 56
represented in DAGs, 56

independence of causal inﬂuence, 205
inference engine, 107
inﬂuence diagram, 74
(cid:6)
-rule, 124

-max-

(cid:6)

conditional LQG, 86, 85–89
discrete, 75, 75–85
information sets, 78
limited memory, 89, 89–91
minimal reduction, 135
soluble, 136

linear-quadratic CG
(cid:6)

(cid:6)

-max-

-rule, 129

maximum expected utility, 78
no-forgetting links, 84
policy, 79
policy function, 125
strategy, 78

316

Index

optimal, 78

information measures, 291
informational link, see link, informa-

tional, 216, 218

inheritance, 98
inhibitor probability, 206
initial assessment, 283
instance, 92
inter-causal reasoning, see explaining

away

interface, 99
interface variables, 92
intermediate variables, 178
intervening action, 75
intervening decision, 80
intervention, 202

joint probability distribution, see
probability distribution

junction tree, 116

CollectInformation, 118
DistributeInformation, 118
propagation, 117
root, 118

kind, see variable, kind

law of parsimony, 171
leak probability, 206
likelihood evidence, see evidence, soft
LIMID, see inﬂuence diagram, limited

memory
link, see edge

informational, 76

local conﬂict, 265

marginalization, 42, 46

generalized operator, 127

Markov criterion, see directed global

Markov criterion

Markovian, 99
maximum expected utility principle, 75
measurement uncertainty, 196
mediating variable, 178, 179, 181, 191
MEU

maximum expected utility, 125

minimal conditioning set, 241

minimal reduction, see inﬂuence

diagram, limited memory, minimal
reduction

missing data mechanism, 229
Mixture of Gaussian distributions, 210
model veriﬁcation, 159
modeling technique

parent divorcing, 178

monotonicity, 264
moral graph, see graph, moral
multivariate Gaussian distribution, 71
mutually exclusive states, 65, 71

nd, see non-descendants
necessary path condition, 241
network class, 92

default instance, 97
internal scope, 93

neural network, 15
no-forgetting, 76
node absorption, 201
Noisy-MAX, 209
Noisy-OR, 205
non-descendants, 20
non-intervening action, 75
normalization, see probability potential,

normalization of
normalization constant, 109
normalized likelihood, 51, 265, 277
nuisance variable, see variable, nuisance,

201

object, 92
object-oriented probabilistic network,

91–98

instance tree, 97
object-orientation

classes, 92
deﬁnition, 91
inheritance, 92
objects, 92

observation

essential, 131
requisite, 131
Occam’s Razor, 171
Oil Wildcatter, 88
OOBN, see object-oriented probabilistic

network

pa, see parent
parameters

elicitation of, 163

parent, 19
partial conﬂict, 265
partial order, 216
path, 19

blocked in DAG, 32
blocked in undirected graph, 20
directed, 19
PC algorithm, 235
PDAG, 231
perfect map, 56
perfect recall, see no-forgetting
poly-tree, 110
posterior probability distribution, see

probability distribution, posterior

potential calculus, 46
prediction, 99
probabilistic network
characteristics, 145
when to use, 144

probability

conditional, 38

probability axioms, 39
probability calculus, 46

chain rule of, 58
distributive law of, 47
fundamental rule of, 39, 50

probability distribution
decomposition, 37
for variables, 40
graphical representation of condi-

tional, 43
marginal, 43
posterior, 45
recursive factorization of, 37
probability of future decisions, 135
probability potential, 44

combination, 46
division, 46
marginalization, see marginalization
normalization of, 44, 45
vacuous, 44

process

underlying distribution, 228
projection, see marginalization
propagation, see junction tree,

propagation

Index

317

reasoning

abductive, 18
causal, 18
deductive, 18
diagnostic, 18
inter-causal, see explaining away
recursive factorization, see proba-
bility distribution, recursive
factorization of
relevant network, 111
relevant variable, 131
retrieval of experience, 252
rule of total probability, 41
rule-based system, 5

selector variable, 184
sensitivity function, 282
sensitivity value, 285
serial connection, see causal network,

serial connection in

Single Policy Updating, 133
skeleton, see graph, skeleton
smoothing, 99
soluble, see inﬂuence diagram, limited

memory, soluble

Sore Throat, 207
SPU, see Single Policy Updating
stability assumption, 228
straw model, 262
structure

elicitation of, 152
uncertainty, 184
veriﬁcation, see model veriﬁcation

subclass, 98
subtype, see variable, subtype

tail, 114
temporal links, 99
temporal order, 182
test decision, 212
time-sliced Bayesian network, 100
topological ordering, 58
tree, 20
Type I error, 235
Type II error, 235

undirected dependence relation, 189
undirected graph, see graph, undirected
unfolded network, 96

318

Index

utility function, 74

v-structure, see collider
vacuous potential, see probability

potential, vacuous

value function, see utility function, 293
value nodes, 75
variable, 20–23

barren, 49, 83, 110
basic, 92
binding link, 94
bound, 94
category, 22
chance, 21
conditioned, 65
conditioning, 65
decision, 21
decision future, 79
decision history, 78
decision past, 79
designated state, 205
deterministic, 21
domain, 21
elimination, 111, 115
equivalence, 94
extremal decision, 136

hidden, latent, 229
identiﬁcation of, 147
independence, see dependence and

independence

kind, 22
no impact state, 205
nuisance, 111
policy, 79
qualiﬁed name, 93
random, 21
scope, 93
set by intervention, 203
simple name, 93
strong marginal, 122
strong type checking, 94
subtype, 22, 166
synergy, 209
target, 110
taxonomy, 22
type, 150
vs. vertex, 21
weak marginal, 122
well-deﬁned, 147

vertex

symbols, 23
vs. variable, 21

